After upgrading to Phonegap 2.5 from 2.3 Xcode hangs on this message "Resetting plugins due to page load".
I have reviewed all these answers:
Error loading external URL in Phonegap 2.5
https://stackoverflow.com/questions/15569327/cordova-2-5-0-query-regarding-ios-plugin
Failed to load webpage with error: Frame load interrupted
which tell you to move cordova-2.5.0.js to the root (same level as index.html) but this didn't fix the issue for me.
I originally had the file in "js/cordova-2.5.0.js" and my index file has the same reference. I made the change as above and I got the same failed result.
After using the "create" command to upgrade and going through the process I've used
"cordova-2.5.0.js" "/cordova-2.5.0.js" "js/cordova-2.5.0.js"
I'm performing a "hard clean" every time I change it too.
any ideas what else I can try or what I'm missing?
Are you using Jquery Mobile or something similar? I had the same issue as i had a login page which it would skip if you were already logged in.
Looks like there is an issue when fading from the splash screen and doing a hash change at the same time.
My code before
$('#LoginPage').live('pagebeforeshow', function(event) {
if(window.localStorage.getItem("UserID"))
{
$.mobile.changePage("#MainPage");
appRefresh();
}
});
My code after
$('#LoginPage').live('pagebeforeshow', function(event) {
if(window.localStorage.getItem("UserID"))
{
$.mobile.changePage("#MainPage", {changeHash: false});
appRefresh();
}
});
This is now working for me.
There is an issue log for this
https://issues.apache.org/jira/browse/CB-2602
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