-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error in application initialization - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured #3685
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
Comments
Something must have been missed. So many ways to do it wrong, very hard to say what was missed. Instead I will point to a script you can read that does it step by step - see if you can compare with your project to find whatever is missing: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh |
Dear @aurelienmartin. |
Dear @mikehardy I am using Firebase Crashlytics. Everything works fine on standalone app. However, during development, as soon as I have let crashlytics;
if (!__DEV__) {
crashlytics = require('@react-native-firebase/crashlytics');
} But the trick above did not work. With this trick, I did not get the error anymore. However the Crashlytics functionality stopped working on standalone apk. I see this issue as a feature request. |
Having the same issue as @ghasemikasra39, not @aurelienmartin. Any solution ? |
Thank you for taking the time to share your experience. I tried to complete the validation process of the application with the Firebase console after having made an ipa build and executed on my iPhone but the last step of verification with the Firebase servers is still pending. |
@ghasemikasra39 this is not expected behavior. Step 1 is a minimal reproducible example. Maintainers aren't seeing this behavior, so we don't know. Here is the start of creating a throwaway react-native-firebase app: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh Clone that repo. Run that script. Provide it the firebase init files (plist / json) for a throwaway project you make in your firebase console so you can play freely. Reproduce the behavior with a simple change to the App.js, and we can see what's going on. I can't reproduce it though, when I run that script it makes an app that says Crashlytics is available 🤷 |
I struggled with this for ages and not sure if my solution is correct. I had only installed I then installed However in my logs I was still getting |
@cloudratha Once I remove
If |
@yoshifumi4423 if you are worried about removing the if statement. Keep it. The first time it’s called the error will appear. Then once configured it should be ok. The message is actually a log but just carries a heavy message that seems negative. |
As @mikehardy mentioned, this will be erroneous setup on your part and is not a React Native Firebase bug. |
You saved my day. But also I'd like to add:
I'm using Splascreen, and have to add it after the firebase config |
@kalmahik do not under any circumstances use 'RNSplashScreen' see crazycodeboy/react-native-splash-screen#289 (comment) Convert to https://github.com/zoontek/react-native-bootsplash |
thx man seems that I have to migrate from RNSplashScreen to bootsplash |
@mikehardy The link you mentioned gets "404 not found" |
@j3igzero yeah - "v6" is now "normal" so I don't suffix it: https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh |
Issue
Hello,
I followed all the steps to install the library on React-Native but unable to complete the configuration of the project on the site https://console.firebase.google.com
The following error appears in the console: [Firebase / Core] [I-COR000003] The default Firebase app has not yet been configured. Add
[FIRApp configure];
(FirebaseApp.configure ()
in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.I followed the guide to put the GoogleService file but the error persists. Is this a problem in the latest version of React Native Firebase ?
Thanks ! Aurélien
Project Files
Javascript
Click To Expand
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:7.1.0
Firebase
module(s) you're using that has the issue:react-native-firebase/auth
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: