Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Android it's not working #8

Open
2xSamurai opened this issue Oct 21, 2019 · 0 comments
Open

On Android it's not working #8

2xSamurai opened this issue Oct 21, 2019 · 0 comments

Comments

@2xSamurai
Copy link

2xSamurai commented Oct 21, 2019

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.

nowrap added a commit to nowrap/cordova-plugin-useragent that referenced this issue Sep 1, 2021
Preventing "Attempt to invoke virtual method 'java.lang.String android.webkit.WebSettings.getUserAgentString()' on a null object reference" from LouisT#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant