Cordova is hard to debug. There are millions things that can go wrong and it hard to separate the easy to debug stuff from the rest once you start working with native. That’s why its important to make the parts that don’t depend on native functionality work in the browser first. Get it working, then when it’s finished, bring it into the native app and work from there. Here’s a quick video showing you what I mean:
If you’re interested in my grunt file here it is:
And here’s the cordova.js file:
It will fire a “deviceready” event to kick the whole thing off!