关于GCM / FCM端点

问题描述 投票:1回答:1

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

①关于GCM端点我们使用的是“android.googleapis.com”。在以下URL(FCM官方网站)中,GCM端点写为“gcm-http.googleapis.com”,我们没有编写“android.googleapis.com”。在官方网站上,没有提到我们使用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端点的差异将请求提交到端点下面的sendAPI,可以在所有端点上进行推送通知。

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)有什么意义吗?

android google-cloud-messaging firebase-cloud-messaging
1个回答
3
投票

今天,所有三个域名都映射到相同的服务器IP。您应该假设在2019年4月19日之后只有fcm子域可用。

© www.soinside.com 2019 - 2024. All rights reserved.