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 error differences on iphone 4 vs 6 #210

Open
whimsica opened this issue Jul 3, 2017 · 1 comment
Open

javascript error differences on iphone 4 vs 6 #210

whimsica opened this issue Jul 3, 2017 · 1 comment

Comments

@whimsica
Copy link

whimsica commented Jul 3, 2017

I had an array in javascript that was causing an error only on iphone 6 and 6 plus and not 4s or 5.
My webview javascripts wouldn't run but also gave no errors. window.onError did not catch anything.

The error was an extra comma in this statement
array=new Array("1","2",);

It took a long time to track down. Do you know why the errors would be different for different iphones? Is the webview different depending on the phone or version of ios?

@KojiNakamaru
Copy link
Member

Yes, if enableWKWebView is set true


and the target iOS supports WKWebView, this plugin utilizes WKWebView. Otherwise it utilizes UIWebView. Perhaps your iPhone 4/5 have iOS 7.x or lower verions of iOS and UIWebView is utilized on them.

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

2 participants