dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
569 stars 461 forks source link

Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application... #682

Open anubhavkamath opened 2 years ago

anubhavkamath commented 2 years ago

Current behavior: I have been able to use this plugin in the past but after some updates, it stopped working. The print is coming from the FIRPerformance.m module. Relevant console log provided below.

This issue can be reproduced with the following versions: XCode: 12.5.1

Podfile versions: pod 'Firebase/Core', '8.4.0' pod 'Firebase/Auth', '8.4.0' pod 'Firebase/Messaging', '8.4.0' pod 'Firebase/Performance', '8.4.0' pod 'Firebase/RemoteConfig', '8.4.0' pod 'FirebaseFirestore', :tag => '8.4.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git' pod 'Firebase/Crashlytics', '8.4.0' pod 'Firebase/Functions', '8.4.0' pod 'Firebase/Installations', '8.4.0' pod 'GoogleSignIn', '5.0.2'

I'm using Quasar and I've been able to reproduce by just adding the the plugin to an example Quasar project. So, it's definitely not just my project that has the issue. I'm guessing there's some incompatibility somewhere.

Screenshots If applicable, add screenshots to help explain your problem.

Console Logs GoogleService-Info.plist found, setup: [FIRApp configureWithOptions] 2021-11-05 17:01:35.973177-0500 TennisVue[912:213480] 8.4.0 - [Firebase/Core][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). Read more: https://goo.gl/ctyzm8.

Plugin Version cordova-plugin-firebasex 13.0.0-cli "Google Firebase Plugin" cordova-plugin-whitelist 1.3.5 "Whitelist"

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context THis seems to be related to this issue but it has resurfaced in a different module now: https://github.com/arnesson/cordova-plugin-firebase/issues/866

Runtime issue

anubhavkamath commented 2 years ago

I switched to the main branch (NOT the CLI) branch and generated the cordova project from scratch and at least I am at a point where I can get into my app. I will try messaging and update shortly. This is my podfile versions that seems to work: pod 'Firebase/Core', '8.4.0' pod 'Firebase/Auth', '8.4.0' pod 'Firebase/Messaging', '8.4.0' pod 'Firebase/Performance', '8.4.0' pod 'Firebase/RemoteConfig', '8.4.0' pod 'Firebase/InAppMessaging', '8.4.0' pod 'FirebaseFirestore', :tag => '8.4.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git' pod 'Firebase/Crashlytics', '8.4.0' pod 'Firebase/Functions', '8.4.0' pod 'Firebase/Installations', '8.4.0' pod 'GoogleSignIn', '5.0.2' pod 'GoogleTagManager', '7.3.1'