No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp() on Android despite correct setup #7462
-
React Native 0.71.3 + Typescript. Project uses ProGuard too, apparently. I'm trying to integrade push notifications through cloud messaging. I've only tested it on Android. I did all the steps required. What am I missing?
Yet, despite all these steps, I keep getting
What am I missing? This is driving me insane. |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 16 replies
-
Hey there 👋 - there must be some steps after step 9? Like "then I run the pod install / build for whatever platform etc" ? I'm not sure which platform the problem is on so I can't say what those commands should be but if you specify what you do I may be able to help more. Alternatively you can have a quick read through the comments on my "build a firebase app from scratch, start to finish in one script" script where I demonstrate how to do the integration: https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh |
Beta Was this translation helpful? Give feedback.
-
Hi. I'm having the same issue, which has also drove me insane, well almost. ;-). My findings so far:
I suspect that there is some version incompatibility issue between Gradle and the Google Services gradle plugin. |
Beta Was this translation helpful? Give feedback.
-
in my case, another problem was that i had missed the step 4 which @DragomirAndrei19 mentioned: (it's just one line in the documentation and i had missed it! took me a day to figure that out😑) anyway I ended up using RN |
Beta Was this translation helpful? Give feedback.
-
Hi @mikehardy |
Beta Was this translation helpful? Give feedback.
-
I have same issue in RN latest version: (NOBRIDGE) ERROR Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp() "react-native": "0.74.0" |
Beta Was this translation helpful? Give feedback.
-
Same issue on react native 0.74 (NOBRIDGE) ERROR Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp() "react-native": "0.74.0" |
Beta Was this translation helpful? Give feedback.
-
You need to configure crashlytics(or any other firebase services which u want) separately after configuring firebase https://rnfirebase.io/crashlytics/usage |
Beta Was this translation helpful? Give feedback.
-
the fix for react-native 0.74 |
Beta Was this translation helpful? Give feedback.
-
Does anybody know why I get this error? Plugin with id 'com.google.gms.google-service' not found |
Beta Was this translation helpful? Give feedback.
-
I'm using Expo and using typescript. In my case plugins were not working so I had to go with React Native CLI - Android Setup instead of Expo. "react-native": "0.74.3" |
Beta Was this translation helpful? Give feedback.
-
Double-check if Ref: #7788 (comment) |
Beta Was this translation helpful? Give feedback.
-
I forgot to add my iOS credentials to AppDelegate.m, and that I have it works! Check out items 2 and 3 here: https://rnfirebase.io/ |
Beta Was this translation helpful? Give feedback.
Reproduced. On rn71 stock templates if you use google-services 4.4.0 it fails on android in exactly the way you describe
If you use rn71 you must use google-services 4.3.15 - it works fine
If you use rn72 you may update to google-services 4.4.0 - it works fine
I'll post a note in the install documentation
Thanks for noticing this!