在 FCM 中使用 GCM Token 推送消息 [英] Use GCM Token for push messages in FCM

查看:14
本文介绍了在 FCM 中使用 GCM Token 推送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我们的设备使用旧的 GCM 实现.

有谁知道在使用 firebase 云消息 API 发送推送消息时是否可以使用旧的现有 GCM 令牌?

或者这些应用是否需要新的 FCM sdk 实施?

解决方案

有谁知道在使用 firebase 云消息 API 发送推送消息时是否可以使用旧的现有 GCM 令牌?

是的,这是可能的.FCM 和 GCM 消息传递 api 是相同的.唯一不同的是网址(gcm-http.googleapis.com/gcm/ vs fcm.googleapis.com/fcm/),但它们指向相同服务器.

另请参阅服务器端点文档.p>

Currently we have devices using old GCM implementation.

Does anyone know if it's possible to use old existing GCM tokens when sending push messages using firebase cloud messaging APIs?

Or would the apps require the new FCM sdk implementation?

解决方案

Does anyone know if it's possible to use old existing GCM tokens when sending push messages using firebase cloud messaging APIs?

Yeah that is possible. FCM and GCM messaging api are the same. The only thing that is different is the url (gcm-http.googleapis.com/gcm/ vs fcm.googleapis.com/fcm/) but they point to the same server.

Also see server endpoints documentation.

这篇关于在 FCM 中使用 GCM Token 推送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆