首页 文章

关于GCM / FCM endpoints

提问于
浏览
1

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

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

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,但切换 endpoints (1~3)有什么意义吗?

1 回答

  • 1

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

相关问题