I have a PhoneGap application that will not fire the "deviceready" event on the iPhone, but will fire it on Android.
Any ideas why this is? or how to fix it?
(Phonegap ver 1.0)
The code:
function onBodyLoad() { if (typeof navigator.device == "undefined"){ document.addEventListener("deviceready", onDeviceReady, false); } else { onDeviceReady(); } } <body onload="onBodyLoad()">
Thanks!
source share