【发布时间】:2024-05-20 02:45:02
【问题描述】:
我正在尝试将 Firebase 用于推送通知。但是,我遇到了障碍,即我无法在 iOS 中做那件事。我尝试了两种方法
Messaging.messaging().setAPNSToken(deviceToken, type: .prod) and InstanceID.instanceID().setAPNSToken(deviceToken, type: InstanceIDAPNSTokenType.sandbox)
第二名
application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data)
已导入 Firebase。
我该怎么办?
编辑: 这是补充信息,错误信息是这样的。 无法获取默认令牌错误 Domain=com.firebase.iid Code=1003 "(null)" 我google了一下,没有相关信息。
【问题讨论】:
-
如果你解决了我也有同样的问题,你能发布答案吗?
标签: ios firebase push-notification firebase-cloud-messaging