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

查看:27
本文介绍了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 方法用于导入 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 令牌的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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