Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/105.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase iOS设置-无senderID_Ios_Firebase_Push Notification_Apple Push Notifications_Firebase Cloud Messaging - Fatal编程技术网

Firebase iOS设置-无senderID

Firebase iOS设置-无senderID,ios,firebase,push-notification,apple-push-notifications,firebase-cloud-messaging,Ios,Firebase,Push Notification,Apple Push Notifications,Firebase Cloud Messaging,尝试为iOS设置Firebase时,我在控制台中遇到以下错误: <FIRInstanceID/WARNING> Firebase messaging not setup correctly, nil senderID. Firebase消息未正确设置,无senderID。 看起来Firebase没有很好地检测到我的谷歌服务信息.plist,我试着把它放在几个位置(包括根目录),但没有成功。关于如何解决这个问题有什么想法/建议吗?请确保文件GoogleService Info.pl

尝试为iOS设置Firebase时,我在控制台中遇到以下错误:

<FIRInstanceID/WARNING> Firebase messaging not setup correctly, nil senderID.
Firebase消息未正确设置,无senderID。

看起来Firebase没有很好地检测到我的
谷歌服务信息.plist
,我试着把它放在几个位置(包括根目录),但没有成功。关于如何解决这个问题有什么想法/建议吗?

请确保文件
GoogleService Info.plist
包含在应用程序使用Firebase构建代码的所有目标中。

解决方案很简单,我只是忘了放
[FIRApp configure]位于
AppDelegate.m

编辑:如果您收到此错误,则表示您忘记将
GoogleService Info.plist
添加到所有目标(如另一个答案所述):

无法获取APNS令牌错误域=com.firebase.iid code=1001”(空)

谢谢,但问题是我忘了调用“配置”……但是你的答案可能会被其他人接受。
<FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"