ios - 如何在没有Firebase SDK的情况下(即通过REST)生成FCM注册 token ?

标签 ios firebase firebase-cloud-messaging

我一直通过简单地调用REST API成功使用Firebase(Realtime DB);由于我的应用程序的结构(dynamic modules / frameworks),我无法使用Firebase iOS SDK。
我一直在尝试使用Firebase Cloud Messaging通过APN生成远程通知。
虽然我已成功使用测试工具(例如Push Notification)发送远程通知,但似乎找不到使用FCM的方法,因为我需要send an FCM message带有FCM注册 token 。
是否有一个REST API端点可用于生成(和“注册”)FCM注册 token ?

最佳答案

据我所知,没有记录的REST API可以获取应用程序安装的FCM token /实例ID。
如果您具有APNS token ,则可以使用一个API将其交换为FCM token 。参见https://developers.google.com/instance-id/reference/server#create_registration_tokens_for_apns_tokens

关于ios - 如何在没有Firebase SDK的情况下(即通过REST)生成FCM注册 token ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62526514/

相关文章:

ios - iOS7 中的 UIToolbar 颜色不正确

ios - 在 void 函数中使用未声明的标识符 'sender'

firebase - Flutter-Firebase Storage上传视频

firebase - Flutter - onLaunch 中的 Firebase 云消息传递导航不起作用

laravel - 消息 : The notification permission was not granted and blocked instead

ios - 从 NSManaged 对象中过滤掉整数

iphone - NSPredicate用于字符串长度依赖性

android - 在我的应用程序中添加 Firebase 时,它​​会显示致命异常

sql - SQL 中的 Firebase 数据库

Firebase 云消息传递 - 管理注册 token