I have application with GCM it's working fine,now i want to migrate from GCM to FCM.
I have used this document for migration,everything working fine for new installed apk.It call the onTokenRefresh
and i have used that token for future use.
Issue is
When i update new app(have FCM code) on existing app(have GCM code).it will not call onTokenRefresh
method.So how can i upload new token on server for future use when apk is updated not a fresh installed.
In this case i have also tried FirebaseInstanceId.getInstance().getToken();
it but provide a new token but onTokenRefresh
not get executed.
Can any one provide a solution for this,how to identify app get updated from GCM to FCM so i will upload new token on server.