This question is locked. New answers and comments are not allowed.
With 1.6 release (perhaps before, but I have no way of knowing), when I build for developer with ad-hoc provisioning, and install the new app, when run initially or any time after "killing it" off, I get the function OnDeviceReady() (set by the following line) called twice.
document.addEventListener("deviceready", onDeviceReady, false);
This with happening with my app, so I created a new jQuery project, using "New" and "Cross-Platform Device Application (jQuery Mobile)" with my only edit from the sample code you give us to console.log("entered onDeviceReady"); This line shows up in the log twice when I initially start the app, or if I restart it after "killing it" off.
This is causing me a number of problems. It appears as if the app is being started, then restarted! As my home page on my real app, which I modify a version number display upon start up replacing the text "(version goes here)" with a version number, shows first as (version goes here), then is replaced by 0.9.2.1705, but then shows again as "(version goes here)" and then is replaced with 0.9.2.1705 again.
I'd like to think I could somehow look past this for now, but I'm getting some strange behavior where my button presses don't cause anything to happen until I switch apps and then switch back. I figure I'll start with the thing getting called twice fixed, then hope the other goes away, as my app works fine in the simulator and on ION.
Thank you for looking into it.
document.addEventListener("deviceready", onDeviceReady, false);
This with happening with my app, so I created a new jQuery project, using "New" and "Cross-Platform Device Application (jQuery Mobile)" with my only edit from the sample code you give us to console.log("entered onDeviceReady"); This line shows up in the log twice when I initially start the app, or if I restart it after "killing it" off.
This is causing me a number of problems. It appears as if the app is being started, then restarted! As my home page on my real app, which I modify a version number display upon start up replacing the text "(version goes here)" with a version number, shows first as (version goes here), then is replaced by 0.9.2.1705, but then shows again as "(version goes here)" and then is replaced with 0.9.2.1705 again.
I'd like to think I could somehow look past this for now, but I'm getting some strange behavior where my button presses don't cause anything to happen until I switch apps and then switch back. I figure I'll start with the thing getting called twice fixed, then hope the other goes away, as my app works fine in the simulator and on ION.
Thank you for looking into it.