Firebase FCM获取旧iOS APNS令牌的令牌 [英] Firebase FCM get tokens for old iOS APNS tokens

查看:103
本文介绍了Firebase FCM获取旧iOS APNS令牌的令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着通过Google将GCM更改为FCM,我们也希望将iOS的推送通知也纳入FCM.如果不提供将每个用户注册到Firebase推送服务的更新,是否可以将所有当前用户令牌订阅到Firebase服务,从而为他们生成FCM密钥?

With the change of GCM to FCM through Google, we are looking to bring our push notifications for iOS into FCM as well. Without providing an update, which would register each user to the Firebase push service, is it possible to subscribe all current users tokens to the firebase service, therefore generating FCM keys for them?

推荐答案

是的,您可以使用 batchImport 方法可导入APN令牌列表,该列表将返回InstanceID令牌的映射,然后您可以将其用于使用FCM将消息发送到iOS应用实例.

Yes, you can use the batchImport method of the InstanceID API to import a list of APNs tokens which will return a mapping of InstanceID tokens that you can then use to send messages to iOS app instances using FCM.

这篇关于Firebase FCM获取旧iOS APNS令牌的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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