I figured it out. I just needed to add ‘onsen’ to the angular.module list argument. Fortunately, my teammate on this project understands Angular better than I do.
There’s a perfectly good example in the OnsenUI github, too: https://github.com/OnsenUI/onsenui2-quickstart/blob/master/www/angular/app.js
I didn’t realize when I first looked at it that that was in there. Once I found it, it made things much clearer.
@patrick they work just fine on the browser. Whitelist is set good and so is CSP. I have no idea why they don’t work with phonegap build. If I try to console.log the error callback object I don’t get anything, but I can guarantee I get the error callback because If I do something like console.log(‘didn’t work’); I’ll get it.
Hi! I’m actually quite confused. There is no such a thing as $scope.ons.screen.presentPage so I don’t know what you are trying to do. Perhaps it’s something that was deprecated. I recommend you to check a bit more updated guides: https://onsen.io/guide/overview.html