Hi,
Here's what I know
It's Sencha Touch app. It loads from a index.html file, and it heavy
js from that point on. I didn't write it, so I don't 100% understand
it yet. The index.html contains the following
<script type="text/javascript" charset="utf-8"
src="js/cordova-1.7.0.js"></script>
<script type="text/javascript" charset="utf-8">
function onBodyLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
alert("onDeviceRead()");
}
</script>
:
<body onload="onBodyLoad()">
:
In one of the event handlers in the app, I have this code
try {
navigator.notification.confirm(...);
} catch(e) {
alert(e);
}
When I build for Android, install and run it, I see the
onDeviceReady() alert, and the confirm(), and I do not see any error
alert. When I do the same for iOS, I don't see the onDeviceRead() nor
the confirm(), and I do see the error alert. It says that navigator
is undefined.
The only difference is that I rebuild the Android app using the 1.7
Cordova files using ant on the commandline, and installing on my
phone. But, on iOS, because I don't have a Mac, I asked a colleague
to build it. He said, because all I did is added some js, the PG app
will not change, and iTunes will reject it as an update (our first
version was accepted) because the binary hasn't changed.
I haven't confirmed what version Cordova he compiling against the
first time he built the app for us. But, I believe it was 7.1.
However, it might not be. Could that be the problem?
That's what I know.
Thank you very much for the help!!
Gene
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to
phon...@googlegroups.com
> To unsubscribe from this group, send email to
>
phonegap+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to
www.phonegap.com
--
DELETE THIS LINE