chemerisuk / cordova-plugin-firebase-messaging

Cordova plugin for Firebase Cloud Messaging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOS - The default Firebase app has not yet been configured

oxfordian-2 opened this issue · comments

In one of my projects requiring push notifications, I have successfully configured this plugin for android.

However on iOS the following error shows up in the debug logs on running the app on a physical device on app start up :

[FirebaseCore][I-COR000003] The default Firebase app has not yet been configured. Add FirebaseApp.configure() to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)(or the@main` struct's initializer in SwiftUI).

Followed by :

[FirebaseMessaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.

and then :

[FirebaseMessaging][I-FCM002022] APNS device token not set before retrieving FCM Token for Sender ID '77079286xxxx'. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set.

Root folder of my project has : GoogleService-Info.plist

config.xml has :

cordova version : 12.0.0 (cordova-lib@12.0.1)
plugin version : cordova-plugin-firebase-messaging 7.0.4 "FirebaseMessagingPlugin"

Please help with next steps to fix this issue. Thank You.

I am currently also working on this. I think the solution for this is to add your APNs key to your firebase project. It can be obtained thru the apple developer centre.
Did you get this to work yet?

I have added the APNs key to firebase. But still unable to resolve the issue.

I have the same problem. Notifications on Android arrive correctly, but on iOS they do not. Does anyone have the same problem and solved it?