Previously, I used to check the application through Safety Net. Then, when logging in by phone number, the error This request is missing a valid app identifier came out. I started to figure it out and read that use the app check via Play Integrity. I started trying, the error is the same. Now I can neither turn on Play Integrity, nor turn off all verification methods. The error is the same. I read the forum, did all the settings and recommendations. It didn't help. Tell me plz, maybe there are more ideas or successful practice in this.
Dependencies
implementation 'com.google.firebase:firebase-appcheck-debug:16.0.0'
implementation 'com.google.firebase:firebase-appcheck-playintegrity'
Initialization
if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
FirebaseApp.initializeApp(/*context=*/this)
val firebaseAppCheck = FirebaseAppCheck.getInstance()
firebaseAppCheck.installAppCheckProviderFactory(
DebugAppCheckProviderFactory.getInstance()
)
} else {
FirebaseApp.initializeApp(/*context=*/this)
val firebaseAppCheck = FirebaseAppCheck.getInstance()
firebaseAppCheck.installAppCheckProviderFactory(
PlayIntegrityAppCheckProviderFactory.getInstance()
)
}
All signatures have been added to the FB project (debug, release, store) SHA-1 and SHA-256.
The following APIs are included:
- Android Device Verification
- Firebase App Check API
- Firebase Installations API
- Google Play Integrity API
- Identity Toolkit API
- Token Service API
What else is missing?