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


#1

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


#2

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


#3

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.


#4

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.


#5

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