【问题标题】:Firebase iOS setup - nil senderIDFirebase iOS 设置 - 无 senderID
【发布时间】:2016-10-17 15:39:17
【问题描述】:

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

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

看起来 Firebase 无法很好地检测到我的 GoogleService-Info.plist,我尝试将它放在几个位置(包括根目录),但它不起作用。关于如何解决这个问题的任何想法/指针?

【问题讨论】:

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


    【解决方案1】:

    解决方法很简单,我只是忘了把[FIRApp configure];放在AppDelegate.m

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

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

    【讨论】:

      【解决方案2】:

      确保文件GoogleService-Info.plist 包含在您的应用使用 Firebase 为其构建代码的所有目标中。

      【讨论】:

      • 谢谢,但问题是我忘了叫“配置”......但你的答案可能是其他人。
      猜你喜欢
      • 1970-01-01
      • 2018-05-31
      • 1970-01-01
      • 1970-01-01
      • 2020-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多