-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
help: needs-triageIssue needs additional investigation/triaging.Issue needs additional investigation/triaging.type: bugNew bug reportNew bug report
Description
Issue
Trying to use AppCheck with "Play Integrity" android
Did the following:
- install react-native-firebase/app-check
- In Firebase Console --> App Check --> Apps --> Registered Successfully Play Integrity - inserting the SHA-256 generated from the app keystore file
keytool -list -v -alias [alias] -keystore [keystore file path] -keypass [key password] - invoking:
export const getAppCheckToken = async () => {
try {
const { token } = await firebase.appCheck().getToken();
return token;
} catch (err) {
console.error(err);
return err.toString();
}
};
Actual:
[appCheck/token-error] com.google.firebase.FirebaseException: Too many attempts
Expected:
Real token
Project Files
Javascript
Click To Expand
package.json:
"@react-native-firebase/analytics": "14.12.0",
"@react-native-firebase/app": "14.12.0",
"@react-native-firebase/app-check": "14.12.0",
"@react-native-firebase/crashlytics": "14.12.0",
"@react-native-firebase/dynamic-links": "14.12.0",
"@react-native-firebase/perf": "14.12.0",firebase.json for react-native-firebase v6:
# N/AiOS
Click To Expand
ios/Podfile:
- I'm not using Pods
- I'm using Pods and my Podfile looks like:
# N/AAppDelegate.m:
// N/AAndroid
Click To Expand
Have you converted to AndroidX?
- my application is an AndroidX application?
- I am using
android/gradle.settingsjetifier=truefor Android compatibility? - I am using the NPM package
jetifierfor react-native compatibility?
android/build.gradle:
// N/Aandroid/app/build.gradle:
// N/Aandroid/settings.gradle:
// N/AMainApplication.java:
// N/AAndroidManifest.xml:
<!-- N/A -->Environment
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-firebaseversion you're using that has this issue:e.g. 5.4.3
Firebasemodule(s) you're using that has the issue:e.g. Instance ID
- Are you using
TypeScript?Y/N&VERSION
- 👉 Check out
React Native FirebaseandInvertaseon Twitter for updates on the library.
Metadata
Metadata
Assignees
Labels
help: needs-triageIssue needs additional investigation/triaging.Issue needs additional investigation/triaging.type: bugNew bug reportNew bug report