cordova-useragent icon indicating copy to clipboard operation
cordova-useragent copied to clipboard

On Android it's not working

Open 2xSamurai opened this issue 4 years ago • 0 comments

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.

2xSamurai avatar Oct 21 '19 10:10 2xSamurai