Ich versuche Firebase-Push-Benachrichtigungen auf einem iOS-Gerät in einer Cordova-App mit this plugin zu arbeiten, aber ich bekomme ein Problem nach dem anderen. Ich weiß nicht einmal, wo ich anfangen soll, also lass mich dir nur mein Konsolenprotokoll zeigen, wenn ich die App lade.Firebase für Cordova App - Fehler beim Abrufen des APNS-Tokens
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.
wie Sie von all diesem Bullsh ** sehen können Ich bekomme ein FCM-Token, aber kein APNS. Ich denke, ich habe jede Art von benötigtem Zertifikat und sogar ein .p8-Zertifikat in den Firebase-Einstellungen für APNS Auth Key hochgeladen.
Ich habe auch versucht, eine Testbenachrichtigung von der Firebase-Benachrichtigungskonsole mit dem bereitgestellten Push-Token von der Debug-Konsole zu senden, aber nichts kommt auf dem Gerät, wenn im Vordergrund oder im Hintergrund. Ich debugge sowohl das Javascript als auch den nativen Code, um das zu sehen.
Was kann ich noch tun, ich weiß nicht einmal, wie ich überprüfen kann, ob alle meine Zertifikate in Ordnung sind oder wenn mir etwas fehlt, bitte helfen Sie.
EDIT: Ich habe die Push-Benachrichtigungen unter Funktionen aktiviert.
Ich habe das schon getan, lassen Sie mich es zu meiner Frage hinzufügen –
Push-Benachrichtigung, Hintergrund-Modus (Remote-Benachrichtigung), Keychain Sharing muss aktiviert sein. Versuchen Sie dann FirebaseAppDelegateProxyEnabledflag in Config.plist wie hier gemeldet zu entfernen: [https://developers.google.com/cloud-messaging/ios/ios-migrate-fcm](https://developers.google.com/cloud- messaging/ios/ios-migrate-fcm) – Frix33
Ich habe all diese aktiviert, und Push-Benachrichtigungen im Hintergrund-Modus, auch mit und ohne FirebaseAppDelegateProxyEnabled, immer noch nichts ausprobiert. Ich teste sogar von der Firebase-Konsole, indem ich einen Push an ein einzelnes Gerät oder an die App sende –