Good to hear that. But now you can also user org.xwalk.core.XWalkCookieManager in Crosswalk-14 beta.
Thanks, Lin From: Haris Zaman [mailto:[email protected]] Sent: Friday, July 31, 2015 18:19 To: Sun, Lin Cc: [email protected] Subject: Re: [Crosswalk-help] Android:User Agent and Cookie handling in shared mode Hi, Thanks of your reply. User-agent thing worked. And for the cookieManagement I did it by setting them through javascript. BR, Haris On Fri, Jul 31, 2015 at 10:03 AM, Sun, Lin <[email protected]<mailto:[email protected]>> wrote: > 1. While using crosswalk in normal mode there is an api mport > org.xwalk.core.internal.XWalkViewBridge with which I set the user agent for > the webview You can use org.xwalk.core.XWalkView.setUserAgentString() in latest crosswalk-14. > 2. And there is another api known as import > org.xwalk.core.internal.XWalkCookieManager which is used to handle Cookies on > webview. We will provide the interface org.xwalk.core.XWalkCookieManager soon in a later version. please be patient. Thanks, Lin From: Crosswalk-help [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Haris Zaman Sent: Wednesday, July 29, 2015 04:04 To: [email protected]<mailto:[email protected]> Subject: [Crosswalk-help] Android:User Agent and Cookie handling in shared mode Hi, I have problem while using crosswalk in shared mode with setting user agent and handling cookies 1. While using crosswalk in normal mode there is an api mport org.xwalk.core.internal.XWalkViewBridge with which I set the user agent for the webview : java.lang.reflect.Method ___getBridge = XWalkView.class.getDeclaredMethod("getBridge"); ___getBridge.setAccessible(true); XWalkViewBridge xWalkViewBridge = null; xWalkViewBridge = (XWalkViewBridge)___getBridge.invoke(webView); XWalkSettings xWalkSettings = xWalkViewBridge.getSettings(); xWalkSettings.setUserAgentString(userAgent); 2. And there is another api known as import org.xwalk.core.internal.XWalkCookieManager which is used to handle Cookies on webview. Both of these apis are not accessible in shared mode, Kindly suggest how to set the user agent and handle cookies while using crosswalk in shared mode. BR, Haris
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
