Firebase向后兼容GCM [英] Firebase Backward compatibility with GCM

查看:248
本文介绍了Firebase向后兼容GCM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用推送通知的项目,通过使用GCM的第三方服务。



我可以访问设备令牌,但是我看不到将其导入到Firebase云消息传递的方式。我知道,对于iOS,有一种方法来导入APNs令牌,但我找不到一种方法来执行Android。



有没有办法发送推送通知到GCM注册的令牌或将其导入Firebase?



谢谢!

解决方案

同意@TimCasteljins,这个帖子有点不清楚,特别是你想把注册标记导入到FCM中的情况。



但是,如果您指的是在FCM中使用它们,则不需要 import 它们。正如Tim Casteljins在评论中提到的那样,您仍然可以使用FCM向这些令牌发送推送通知。只要您使用相应的发件人ID和服务器密钥。



如果您打算使用FCM,为什么不只是完全迁移到FCM

I have a project that uses push notifications via a 3rd party service that uses GCM under the hood.

I have access to the device tokens, but I see no way to import those to the Firebase Cloud Messaging. I know that for iOS, there is a way to import APNs tokens, but I can't find a way to do that for Android.

Is there a way to send push notifications to GCM registered tokens or to import them to Firebase?

Thanks!

解决方案

Agreeing with @TimCasteljins, the post is a bit unclear, specifically where you want to import the registration tokens to FCM.

However, if you are referring to use them in FCM, there is no need to import them. As what was also mentioned by Tim Casteljins in the comments, you may still send push notifications to those tokens using FCM. So long as you use the corresponding Sender ID and Server Key.

If you are planning to use FCM, why not just Migrate to FCM completely?

这篇关于Firebase向后兼容GCM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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