Ios Cordova应用程序的Firebase-无法获取APNS令牌

Ios Cordova应用程序的Firebase-无法获取APNS令牌,ios,xcode,cordova,firebase,apple-push-notifications,Ios,Xcode,Cordova,Firebase,Apple Push Notifications,我正试图让Firebase推送通知在Cordova应用程序的iOS设备上工作,但我遇到了一个又一个问题。我甚至不知道从哪里开始,所以让我在加载应用程序时向您显示我的控制台日志 MyApp[754:298085] Starting Firebase plugin MyApp[754:298085] [CDVTimer][firebaseplugin] 0.200033ms MyApp[754:298085] [CDVTimer][TotalPluginStartup] 73.943019ms My

我正试图让Firebase推送通知在Cordova应用程序的iOS设备上工作,但我遇到了一个又一个问题。我甚至不知道从哪里开始,所以让我在加载应用程序时向您显示我的控制台日志

MyApp[754:298085] Starting Firebase plugin
MyApp[754:298085] [CDVTimer][firebaseplugin] 0.200033ms
MyApp[754:298085] [CDVTimer][TotalPluginStartup] 73.943019ms
MyApp[754:298119] [Firebase/Core][I-COR000001] Configuring the default app.
MyApp[754] <Debug> [Firebase/Core][I-COR000001] Configuring the default app.
MyApp[754:298117] <FIRAnalytics/INFO> Firebase Analytics v.3404000 started
MyApp[754:] <FIRAnalytics/INFO> Firebase Analytics v.3404000 started
MyApp[754:298117] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see some link here)
MyApp[754:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see some link here)
MyApp[754:298085] Firebase Crash Reporting: Successfully enabled
 <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
 <FIRMessaging/INFO> FIRMessaging library version 1.2.0
MyApp[754:298118] [Firebase/Core][I-COR000018] Already sending logs.
MyApp[754] <Debug> [Firebase/Core][I-COR000018] Already sending logs.
MyApp[754:298118] libMobileGestalt MobileGestaltSupport.m:153: pid 754 (MyApp) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
MyApp[754:298118] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
MyApp[754:298124] <FIRAnalytics/WARNING> The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at some link here
MyApp[754:] <FIRAnalytics/WARNING> The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at some link here
MyApp[754:298119] <FIRAnalytics/INFO> Firebase Analytics enabled
MyApp[754:] <FIRAnalytics/INFO> Firebase Analytics enabled
MyApp[754:298085] Resetting plugins due to page load.
MyApp[754:298119] [Firebase/Core][I-COR000019] Clearcut post completed.
MyApp[754] <Debug> [Firebase/Core][I-COR000019] Clearcut post completed.
MyApp[754:298085] Connected to FCM.
MyApp[754:298085] InstanceID token: eD1pW3DsaUA:APA91bGSKxvd6VRf-3O1_AgQcdCL3ZLERsWDShsFy8LE6MlNLTgFl-sYH9EzvPZJn9JH-oRjvhwQrwp-h6YukJ86IQP0Q4iLnOf4GwoPgR5dV1ozLX1Fnc7bpJDMOtukAriLT8NZSAVl
MyApp[754:298132] [Firebase/Core][I-COR000019] Clearcut post completed.
2017-05-19 16:05:39.389 MyApp[754] <Debug> [Firebase/Core][I-COR000019] Clearcut post completed.
MyApp[754:298085] Finished load of: file:///var/containers/Bundle/Application/0A7C5C10-135D-4E34-A2BC-D64528786544/MyApp.app/www/index.html
MyApp[754:298085] THREAD WARNING: ['FirebasePlugin'] took '4102.684082' ms. Plugin should use a background thread.
MyApp[754:298085]正在启动Firebase插件
MyApp[754:298085][CDVTimer][firebaseplugin]0.200033ms
MyApp[754:298085][CDVTimer][TotalPluginStartup]73.943019ms
MyApp[754:298119][Firebase/Core][I-COR000001]配置默认应用程序。
MyApp[754][Firebase/Core][I-COR000001]配置默认应用程序。
MyApp[754:298117]Firebase Analytics v.3404000已启动
MyApp[754:]Firebase Analytics v.3404000已启动
MyApp[754:298117]要启用调试日志记录,请设置以下应用程序参数:-FIRAnalyticsDebugEnabled(请参见此处的一些链接)
MyApp[754:]要启用调试日志记录,请设置以下应用程序参数:-FIRAnalyticsDebugEnabled(请参阅此处的一些链接)
MyApp[754:298085]Firebase崩溃报告:已成功启用
无法获取APNS令牌错误域=com.firebase.iid代码=1001“(空)”
FIRMessaging库版本1.2.0
MyApp[754:298118][Firebase/Core][I-COR000018]已发送日志。
MyApp[754][Firebase/Core][I-COR000018]已发送日志。
MyApp[754:298118]LibMobileGetStalt MobileGetStaltSupport.m:153:pid 754(MyApp)没有frZQaeyWLUvLjeuEK43hmg的沙箱访问权限,因此没有适当的权限
MyApp[754:298118]libMobileGestalt MobileGestalt.c:550:无法访问InverseDeviceID(请参阅)
MyApp[754:298124]AdSupport框架当前未链接。某些功能无法正常工作。在这里的一些链接了解更多信息
MyApp[754:]AdSupport框架当前未链接。某些功能无法正常工作。在这里的一些链接了解更多信息
MyApp[754:298119]已启用Firebase分析
MyApp[754:]已启用Firebase分析
MyApp[754:298085]由于页面加载而重置插件。
MyApp[754:298119][Firebase/Core][I-COR000019]已完成明码标价。
MyApp[754][Firebase/Core][I-COR000019]已完成明码标价。
MyApp[754:298085]已连接到FCM。
MyApp[754:298085]实例ID令牌:eD1pW3DsaUA:APA91bGSKxvd6VRf-3O1_AGQCDCL3ZlersWDSHFY8LE6MLNLTLTGFL-sYH9EzvPZJn9JH-oRjvhwQrwp-h6YukJ86IQP0Q4iLnOf4GwoPgR5dV1ozLX1Fnc7bpJDMOtukAriLT8NZSAVl
MyApp[754:298132][Firebase/Core][I-COR000019]已完成明码标价。
2017-05-19 16:05:39.389 MyApp[754][Firebase/Core][I-COR000019]已完成明码标价。
MyApp[754:298085]的完工荷载:file:///var/containers/Bundle/Application/0A7C5C10-135D-4E34-A2BC-D64528786544/MyApp.app/www/index.html
MyApp[754:298085]线程警告:['FirebasePlugin']使用了'4102.684082'ms。插件应使用后台线程。
从这些废话中你可以看到**我得到的是FCM代币,但不是APNS。我想我已经上传了各种需要的证书,甚至在Firebase设置中为APNS Auth Key上传了一个.p8证书

我还尝试使用调试控制台提供的推送令牌从Firebase通知控制台发送测试通知,但无论是在前台还是后台,设备都不会收到任何消息。我正在调试javascript和本机代码以了解这一点

我还能做什么呢?我甚至不知道如何检查我的证书是否齐全,或者我是否遗漏了什么,请帮忙


编辑:我已打开“功能”下的推送通知。

打开“项目目标”>“功能”下的推送通知。
这对我很有用。

打开项目目标>功能下的推送通知。
它对我很有效。

我仍然不知道问题出在哪里,但我尝试了另一个插件,在我确保应用程序有权接收推送,并且项目上的所有其他内容都配置良好后,我开始接收推送。

我仍然不知道问题出在哪里,但我尝试了另一个插件,在我确保应用程序具有接收推送的权限,并且项目上的所有其他内容都配置良好后,我开始接收推送。

推送通知、后台模式(远程通知)、钥匙链共享必须启用。然后尝试删除Config.plist中的FirebaseAppDelegateProxyEnabledflag,如下所述:我启用了所有这些,并在后台模式下选择了推送通知,在启用和不启用FirebaseAppDelegateProxyEnabled的情况下也进行了尝试,但仍然没有任何结果。我甚至在Firebase控制台上进行测试,向单个设备或appPush通知发送推送,后台模式(远程通知),必须启用密钥链共享。然后尝试删除Config.plist中的FirebaseAppDelegateProxyEnabledflag,如下所述:我启用了所有这些,并在后台模式下选择了推送通知,在启用和不启用FirebaseAppDelegateProxyEnabled的情况下也进行了尝试,但仍然没有任何结果。我甚至在Firebase控制台上进行测试,向单个设备或应用程序发送推送