关于GCM/FCM端点



在我们的项目中,我们使用GCM进行推送通知。由于建议迁移到FCM,因此考虑了服务器功能的FCM过渡。请在下面告诉我问题①和②。

①关于GCM端点 我们正在使用" android.googleapis.com"。 在以下URL(FCM官方网站)中,GCM终点写为" gcm-http.googleapis.com",我们没有android.googleapis.com。 在Offcial网站上,没有提及我们使用GCM端点" Android.googleapis.com"。

 ·Https://developers.google.com/cloud-messaging/android/android-migrate-fcm#update_server_endpoints

Q1。" android.googleapis.com"是否继续得到支持和可用? " android.googleapis.com"是否会被弃用?

Q2。是" android.googleapis.com" GCM 2.0的终点?


②关于GCM的差异,FCM终点 在下面的按下通知的端点可以在所有端点上提交请求。

1) android.googleapis.com/gcm/send
2) gcm-http.googleapis.com/gcm/send
3) fcm.googleapis.com/fcm/send

Q3。当将同一请求发送到上述API时,会返回相同的响应吗?

Q4。当返回相同的响应时,上述API(1~3)之间有什么区别?

Q5。另外,尽管官方网站建议转移到FCM,但是否有任何含义可以切换端点(1~3)?

今天所有三个域名映射到同一服务器IP。您应该假设只有FCM子域才能在2019年4月19日之后提供。

最新更新