I am currently using PhoneGap 2.7.0 for my project, and the code works without errors in iOS. When I try to run the same code on Android (except for the javascript file from Cordoba, which I know is different for Android) I get this error:
05-21 22:02:25.630 1663-1663/com. D/Cordova: onPageFinished(file:///android_asset/www/index.html) 05-21 22:02:25.640 1663-1663/com.###.### D/CordovaLog: Uncaught Function required as first argument! 05-21 22:02:25.640 1663-1663/com.###.### E/Web Console: Uncaught Function required as first argument! at file:///android_asset/www/cordova-2.7.0.js:627
Here is the JavaScript I'm using in index.html:
<script type="text/javascript"> var app; document.addEventListener("deviceready", function() { app = new AppWrapper(); }, false); </script>
I am not sure what the problem is. I had this problem before, but in the past it was resolved (black magic?). Any help would be greatly appreciated.
source share