App starts but cordova plugins not working in final apk


#1

Hi everyone, I am trying to build my first apk. I followed this tutorial: https://www.airpair.com/ionic-framework/posts/production-ready-apps-with-ionic-framework . The problem is that when I run the app the cordova plugins are not working (eg: Cannot read property ‘toast’ of undefined) Any hint of what coud be the problem?


#2

Post what you see in console when inspecting your app on device using Chrome remote debugging.


#3

Hi, Thanks for your reply. In the end I followed the process showed on those links and everything worked fine:
http://blog.ionic.io/minifying-your-source-code/
http://ionicframework.com/docs/guide/publishing.html