Cordova Android Uncaught Function Error -


i'm using phonegap 2.7.0 on project , code runs without error on ios.when try run same code on android (with exception of cordova javascript file, know different android) i'm getting 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 first argument! 05-21 22:02:25.640    1663-1663/com.###.### e/web console: uncaught function required first argument! @ file:///android_asset/www/cordova-2.7.0.js:627 

here javascript i'm using in index.html:

<script type="text/javascript"> var app; document.addeventlistener("deviceready", function() {     app = new appwrapper(); }, false); </script> 

i'm not sure issue is.i had issue before has resolved in past (black magic?).any appreciated.

after employing ripple debug issue (highly recommended), found pointer undefined function being applied event listener (so, not specific deviceready call).

for future developers: check make sure all of "addeventlistener" calls pointing existing functions. seems obvious, happens.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -