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.