0

I set up Firebase AppCheck in my Flutter App. I added

await Firebase.initializeApp(
      options: DefaultFirebaseOptions.currentPlatform,
    );
await FirebaseAppCheck.instance.activate();

in my main.dart code, and I added the Play Console Play Integrity SHA-256 key in Firebase AppCheck Section. And also I added

dependencies {
    // Import the BoM for the Firebase platform
    implementation platform('com.google.firebase:firebase-bom:30.5.0')

    // Add the dependency for the App Check library
    // When using the BoM, you don't specify versions in Firebase library dependencies
    implementation 'com.google.firebase:firebase-appcheck-playintegrity'
}

in build.gradle file.

At his point, all the requests made are still invalid, even if my app is correctly published in Play Store. enter image description here

faccio
  • 652
  • 3
  • 16
  • Hi faccio. Did you solve this? – zeed Nov 28 '22 at 07:37
  • 1
    I had to add also SafetyNet in AppCheck on Firebase, and now it works. Even if the documentation says that it is deprecated, and we should use only Play Integrity. But Play Integrity alone doesn't work – faccio Nov 29 '22 at 08:18

0 Answers0