cordova-useragent
cordova-useragent copied to clipboard
On Android it's not working
Methods are not returning anything. get, set, reset.. tried everything. The callbacks are not firing.
returns false on console logging. Can somebody please check.
I am executing the code inside the platform ready. and I have access to the UserAgent object with the methods.
After some digging, I can say the settings object inside UserAgent.java is null. Since I am getting this error. "Attempt to invoke virtual method 'java.lang.String android.webkit.WebSettings.getUserAgentString()' on a null object reference"
Update: I am using crosswalk...
Can someone suggest to make it work in crosswalk
Please help.
Thank you.