My Phonegap application loads a web app and the cordova.js
file resides on the server. For example I am calling the url like "http://mydomain.com/index.php" but the deviceready
event is not firing at all. I call the url from an internal HTML file using window.location = url;
. I have done all the whitelisting and the page loads properly inside the app. Is there anything else I need to do ?
It was a bug on Cordova.2.1.0. They have fixed in the 2.2.0 version but still not released. I tried the unreleased version from github and it is working fine for me.
You can download the new version from here