-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[🐛] ANDROID | no firebase app ' default ' has been created #8434
Comments
Unfortunately that means you'll need to carefully examine your app in comparison to the one it generated. The module works but you have a project specific problem and we don't have the bandwidth to investigate every project |
How can I understand where exactly I am getting an error? How can I track it? Which logs should I look at? @mikehardy |
DIfferent approach - what config files do I look at is the question |
Hi there, it looks like the test project uses this version of React Native 0.78.1 https://github.com/mikehardy/rnfbdemo/blob/0f16f47dc9823a592673d849d981db1fb8a96bf9/make-demo.sh#L4C1-L4C14 if you are trying to imitate this project I can suggest you try using that version of react native. Let me know how it goes. 😄 |
Seeing exact same behavior on iOS with react native 0.77.2 |
Hello, I found the solution after about 2 weeks of trying. There was this tools:node="replace" in the application tag in the manifest .xml file and when I deleted it, it was fixed. As I said before, it was working in 0.72.4 without any problems. Do you think there is a reason why this might have happened? @mikehardy @MichaelVerdon |
Here is a very old issue related to this firebase/quickstart-android#477 It seems specifically that using the replace option seems to stop firebase from working and I am unsure on whether Firebase has this documented. Here is some information on what that does https://stackoverflow.com/questions/64595598/what-does-the-toolsreplace-attribute-do-in-an-android-manifest-file ... Why it works with it on a different React Native version, I am unsure but incorrect usage of 'tools:replace' in the manifest merger can interfere with metadata and services required for Firebase to work. I think @mikehardy would be able to tell you more. |
Issue
Hello, I was using react native 0.72.4 version without any problems, but when I upgraded to 0.77.1, this problem started to occur. I have tried https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh this repo. it's work no problem
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
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
:android/app/build.gradle
:android/settings.gradle
: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:21.12.2
Firebase
module(s) you're using that has the issue:Analytics
TypeScript
?5.0.4
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: