简体   繁体   English

GCM3和FCM向后兼容GCM 2

[英]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 . 现在我默认使用Google Cloud Messaging 2.0,在GCM版本中使用我的registration_id 。现在我想转到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. Firebase Cloud Messaging(GCM)的使用从实例ID API获取注册令牌,这意味着您将在该实例和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) 在服务器端,API应该完全兼容(只是FCM的新端点)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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