-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error running tests: You attempted to use a firebase module that's not installed natively on your iOS project by calling firebase.app() #3633
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
If you don't have the results of #3339 which I believe are in 6.7.1 I wouldn't want to use messaging (and certainly we can't support it since all the fixes are in that PR), so I'd look to untangle your deps so you can upgrade. |
@mikehardy realizing that we were pretty far behind, I went ahead and upgraded. Still seeing the same issue. I'll look into the native modules/jest track - it hadn't occurred to me that would be the issue! |
@mikehardy thanks for the tip. Mocks were the ticket! Leaving these here in case anyone else stumbles into this:
|
Nice! Glad that worked |
Same error here without using jest! |
Then it is not at all the same problem. You have improperly integrayed the module and should carefully examine the setup instructions |
I reinstalled the app on emulator, and it worked. |
Issue
Installed @react-native-firebase/messaging @6.3.4 (to match other deps in the project) and getting the following output trying to run tests using jest
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6: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:6.3.4
Firebase
module(s) you're using that has the issue:Messaging
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: