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 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 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.
You can use the following method of XWalkView public API to set User-Agent:
setUserAgentString(java.lang.String userAgent)
See Javadoc for more details.
But regarding XWalkCookieManager I can't suggest anything. Let us know if you find something useful.