Push Plugin for ANDROID not working in prod mode, but works in dev mode


Hi …have a doubt… In android device when i run ionic --prod mode… it is throwing error push plugin is not installed, but in dev mode it is working fine…anyone know why ?

Can someone pls help


Show the console output of the non---prod run please.


Ya sure… I found that when I use main.js uncompressed version its push plugin is working … but in prod mode it is compressed it is not working.


Found the solution… The problem is that i have called Push.init before platform.ready. Once i enclosed it inside the success callback of platform.ready it is working now.


That was what I was getting at - and beat me to it :wink: The error comes before deviceready :wink: