-
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
[🐛] AppCheck native module missing error has incorrect import package name suggestion #6009
Comments
Good catch on the incorrect error message, this will go in the queue with the other app check issues which still need some attention. Assuming you have altered your import to |
I actually missed the import Thanks @mikehardy |
Great, glad you are unblocked. Please remember app check in general is still beta, and while we have seen correct + successful results for most things there are some outstanding issues both here (like this issue! which I will leave open to fix the message) and in the underlying native SDKs and/or the emulator. An example is that the firebase database emulator (used optionally for local development) does not seem to like it when app check is enabled on android. Why? Still needs to be fixed, but it's all getting better and does work if you are careful and test things. Cheers |
previously the error message for a missing import specified the camel-case version of the package name, which is right for the usage, but not for the import Fixes #6009 - thanks to @FakhruddinAbdi for noticing it!
previously the error message for a missing import specified the camel-case version of the package name, which is right for the usage, but not for the import Fixes #6009 - thanks to @FakhruddinAbdi for noticing it!
Issue
I tried to activate firebase.appCheck for android using this code
firebase.appCheck().activate('ignored', false);
But it failed with this error
Uncaught Error
You attempted to use 'firebase.appCheck' but this module could not be found.
Ensure you have installed and imported the '@react-native-firebase/appCheck'
I checked the documentation for appCheck installation and it didn't give an example about how to activate it.
After searching the issues, i found out its like this
firebase.appCheck().activate('ignored', false);
The error reference a wrong import command
@react-native-firebase/appCheck
, which should be @react-native-firebase/app-check`;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
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output: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
TypeScript
?Y/N
&VERSION
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: