So I have built this Cordova 4.0 app which works fine on Android, but when running on my iPhone I run into an error.
When launching the app I get a white screen for about two minutes and in the Xcode console it says Resetting plugins due to page load.
On SO I have found some suggested solutions to this error:
1. Resetting plugins due to page load
This one looks reasonable because it suggests it's a problem with jQuery Mobile which I am using. However, I don't use $.changePage();
anywhere in my code. Also, it would appear that this is solved in Cordova 4.0 https://issues.apache.org/jira/browse/CB-2602
2. Phonegap/Cordova 3.1 Resetting plugins due to page load
This one concludes that this is an error message you can safely ignore. In my case, I can't really ignore those two minute of white screen.
Here's the code which is loaded on app-load: http://pastebin.com/zSAYkdUB
What can be done?
You'll see this message in every Cordova iOS app. (Try with the sample app.) It's printed when the webView begins to load resources. See the code here.
It also fires the CDVPluginResetNotification at the same time which calls onReset
on all of the plugins. According to the code this method should be overridden to cancel long running requests when the webview refreshes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With