My code works well at android platform(phonegap 2.0 and before).But when i try to run it at ios, it has some problems.
If i add cordova2.0.js like this:
<script type="text/javascript" src="js/cordova-2.0.0.js"></script>
But my app will alert a lot. like these:
[“Info”,”NetworkStatus0″,true]
[“tDeviceInfo”,”Device1″,true]
When i romove cordova-2.0.0.js tag. The index.html load normally without any alert.
I don’t know why.
We had a similar problem that got fixed by always using the cordova-2.0.0 that xCode creates automatically for you when starting a phonegap-project.
Are you using the android version of the javascript?