Describe your issue here
Click To Expand
#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like:
# N/A
#### `AppDelegate.m`:
// N/A
Click To Expand
#### Have you converted to AndroidX? - [ ] my application is an AndroidX application? - [ ] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [ ] I am using the NPM package `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 -->
Click To Expand
**`react-native info` output:**
OUTPUT GOES HERE
- **Platform that you're experiencing the issue on**:
- [ ] iOS
- [ ] Android
- [ ] **iOS** but have not tested behavior on Android
- [ ] **Android** but have not tested behavior on iOS
- [ ] Both
- **`react-native-firebase` version you're using that has this issue:**
- `e.g. 5.4.3`
- **`Firebase` module(s) you're using that has the issue:**
- `e.g. Instance ID`
- **Are you using `TypeScript`?**
- `Y/N`
Think react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]
React Native Firebase
and Invertase
on Twitter for updates on the library.@diegojimenes how did you solve this?
Having the same problem right now.
This shows up when RNFB isn't installed correctly - firebase will create the default app for you if you install - you might check my install demo in particular this line for iOS at least https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh#L14
Thanks @mikehardy that solved it for me.
I used the react-native-firebase cli and thought that would have initialized it automatically.
Glad that worked for you! Note that this integration is so deep in native code, with a lot of optional behavior and background behavior - that there really isn't a good way to avoid some of the native setup outside the normal CLI auto-linking. I say that because for each module you need to carefully check the native install instructions and do the necessary tasks, while testing each part of functionality to verify it was done correctly. It's beautiful when it works but the issues list is littered with folks having trouble with native install bits that are documented already. Good luck!
I initially placed the [FIRApp configure];
just before return YES;
in application:didFinishLaunchingWithOptions
. Moving the configure
to the start of this method solved it for me.
I initially placed the
[FIRApp configure];
just beforereturn YES;
inapplication:didFinishLaunchingWithOptions
. Moving theconfigure
to the start of this method solved it for me.
it's magic, man
feels like the documentation is wrong...
There is an edit button at the top right of every documentation page. The docs aren't perfect, but are easy to fix at least...
I'm having this issue, but on the Android side. Is there an equivalent to [FIRApp configure];
that belongs in MainApplication
or MainActivity
?
@rob5408 so it's not the same issue, it's different. You should open a new issue with full details in the template, but I'd encourage you to try a throw-away app first, clean and simple, to see how things work. I usually point people to this to see how things are integrated from scratch (you can clone the repo, follow the comments in the script and run it - it'll work) - you don't mention your version but the repo has a make-demo script for all the major variants people use react-native-firebase for, you can find one that fits: https://github.com/mikehardy/rnfbdemo
Cool, I'll try the v6 script to make a demo app. I'm upgrading from a 0.59.x react-native project with rnfirebase 5.3.1 to react-native 0.61.5 and rnfirebase 6.3.0. The iOS upgrade process was about an hour. I'm on my second week of the Android upgrade 馃槵.
@mikehardy Your script was super helpful (specifically https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh), thanks a bunch.
Is there any reason why this works in ios and the error in the titile shows in android??
If you are using other dynamic frameworks with use_frameworks!
in your pod file, you have to force using firebase as a static framework. To do this, put the following line at the top of your pod file.
$RNFirebaseAsStaticFramework = true
omg..
I initially placed the
[FIRApp configure];
just beforereturn YES;
inapplication:didFinishLaunchingWithOptions
. Moving theconfigure
to the start of this method solved it for me.
LEGEND...
@Eumhongin how come you ran into this issue? It is explained on the first page in the docs:
Most helpful comment
I initially placed the
[FIRApp configure];
just beforereturn YES;
inapplication:didFinishLaunchingWithOptions
. Moving theconfigure
to the start of this method solved it for me.