I'm migrating my Android application from Parse to Firebase. Everything work very well when user install my app for the first time, however, for the user who upgrade from old version using GCM(Parse), I always get the old GCM token format like
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
# APA91bG66...
New installs always get something like
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
# c7TUtBlvNqk:APA91bHMDU
How can I force Firebase to return the new format?
[Edit] As I mention before, I upgrade from Parse. In order to keep both of them working well, in this version I have to retain GCM(Parse) and integrate FCM. I still initial Parse Service to get installation, which use the other GCM application. So I think the token I get from FCM belong to the other GCM application. I'm investigating it.
fuQpt-ovvdY:APA91bHn_....
and I can send message flawlessly . But If I upgrade from old version, I got something likeAPA91bG66.....
And When I send message, I got Error : "error": "MismatchSenderId" – anhlt