简体   繁体   中英

GCM3 & FCM is backward compatible for GCM 2

Right now i am using Google Cloud Messaging 2.0 by default its using my registration_id in GCM version.Now i want move to FirbaseCloudMessaging or GoogleCloudMessaging 3 . is both are backward compatible?

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM