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

Javascript functionalities for my cordova app doesn't work on android 4.4.2 but works on higher versions #886

Closed
adekunle11 opened this issue Dec 18, 2019 · 4 comments
Labels

Comments

@adekunle11
Copy link

Javascript functions like button clicks, and onesignal plugin code for usage do not work on my android 4.4.2, I've tested on android 5.0 and 8.0, it works fine
My cordova version is 9.0
My minSdkVersion is set to 19 which is 4.4.2 right?
Please what can I do

@breautek
Copy link
Contributor

android sdk 19 is android 4.4.x, so yes it includes 4.4.2.

The major difference between 4.4 and android 5.0 or 8.0 is that the webview on 4.4 is stuck at an really old version of chrome. (I believe it's chrome 30 if memory serves me right). So there are a lot of JS features that are not supported back then.

The modern chrome debugger doesn't work very well on older devices, but you should still be able to use it to remote debug your app and at least view the javascript console for errors.

@adekunle11
Copy link
Author

@breautek This is what it shows
20191218_161542

@breautek
Copy link
Contributor

OneSignal has a syntax error which I would guess is the root cause of all the other errors.

@dpogue
Copy link
Member

dpogue commented Dec 18, 2019

This is a bug in the onesignal plugin, not in Cordova Android.

It looks like it was fixed in onesignal-cordova-plugin v2.5.2, and the latest version is v2.8.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants