Right now i am using Google Cloud Messaging 2.0 by default its using myregistration_id
in GCM version.Now i want move to FirbaseCloudMessaging or GoogleCloudMessaging 3
.
is both are backward compatible?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The tokens are different. Firebase Cloud Messaging (GCM) use gets registration tokens from the Instance ID API which means you'll get different tokens between that and GCM2.
You'll need to send that new token back to your server to send messages. On the server side the APIs should be fully compatible (just new endpoints for FCM)