Integrating Firebase
into my Android app and have configured it with the SHA-256 certificate fingerprint from my Google key. However, the setup isn't working, and all requests to Firebase
are blocked.
Error output:
Error getting App Check token; using placeholder token instead. Error: n8.j: Error returned from API. code: 403 body: App attestation failed.
I've followed the docs:
Enabled APIs
Add the code in my app
Code :
Firebase.initialize(context = this)
if (BuildConfig.DEBUG) {
Firebase.appCheck.installAppCheckProviderFactory(
DebugAppCheckProviderFactory.getInstance(),
)
} else {
Firebase.appCheck.installAppCheckProviderFactory(
PlayIntegrityAppCheckProviderFactory.getInstance(),
)
}
Added the SHA256
of the signature key provided in the Play console -> key management section
It works on debug but not on release.
Is there a specific setting that I might be missing, or could this be an issue with the fingerprint itself?
Google Cloud Project > API & Services > Credentials > API Keys
and used same file in your project ? – Cytochemistrygoogle-services.json
from API keys, but there is an API key "Android key (auto created by Firebase)" and the value of this key is the same as the "current_key" inside mygoogle-services.json
– Cytochemistry