问题描述
随着通过 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 方法用于导入 APNs 令牌列表,该列表将返回 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 令牌的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)