Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS - The default Firebase app has not yet been configured #240

Open
oxfordian-2 opened this issue Dec 12, 2023 · 3 comments
Open

IOS - The default Firebase app has not yet been configured #240

oxfordian-2 opened this issue Dec 12, 2023 · 3 comments

Comments

@oxfordian-2
Copy link

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 ([email protected])
plugin version : cordova-plugin-firebase-messaging 7.0.4 "FirebaseMessagingPlugin"

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

@VinzSpring
Copy link

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?

@oxfordian-2
Copy link
Author

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

@andrzejjeziorny
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants