ios - Firebase iOS 设置 - nil senderID

标签 ios firebase push-notification apple-push-notifications firebase-cloud-messaging

尝试设置适用于 iOS 的 Firebase 时,我在控制台中收到此错误:

<FIRInstanceID/WARNING> Firebase messaging not setup correctly, nil senderID.

看来 Firebase 未能很好地检测到我的 GoogleService-Info.plist,我尝试将其放置在几个位置(包括根目录),但没有成功。关于如何解决这个问题的任何想法/指针?

最佳答案

解决方案很简单,我只是忘记将[FIRApp configure];放入AppDelegate.m

编辑:如果您收到此错误,则意味着您忘记将 GoogleService-Info.plist 添加到所有目标(如其他答案所述):

<FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"

关于ios - Firebase iOS 设置 - nil senderID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40090505/

相关文章:

java - 通知用户 Firebase 搜索是否成功

java - 如何将通知图标设置为大

android - Ionic.io 从 Node js 服务器发送推送通知

iphone - 如何在 iPhone 中创建一段时间的提醒,例如 30 分钟后提醒我

ios - 在 HTML 电子邮件中检查设备是否为 iOS

c# - Xamarin 中的 SyndicationFeed 类

Firebase 实时数据库 - 扩展到 100.000 个并发连接以上

android - Firebase 的 MVC 模式

iphone - 当当前时间等于日出时间时触发警报,即使应用程序在后台

ios - 谁能给我一些关于 NSManagedObjectContext 中这个方法 "refreshAllObjects"的引用