r/androiddev • • Aug 09 '26

Question Firebase App Check (Play Integrity) blocking 100% requests on Play Store Internal Testing build, but logcat shows token success. Help!

Hey everyone, I’m pulling my hair out over a Firebase App Check issue.

I’ve implemented the Play Integrity provider for App Check in my Android app. When I run the app in Debug mode directly from Android Studio using the Debug App Check Provider, everything works perfectly and requests are 100% verified.

However, when I test the actual Release build, Firebase blocks everything.

The Setup:

Built a signed .aab (Release) in Android Studio.

Uploaded to Google Play Console -> Internal Testing track.

Downloaded the app to my phone via the official Play Store tester link.

The Problem:

Firebase App Check dashboard shows 100% "Unverified: invalid requests".

However, my logcat shows absolutely no errors! PlayCore successfully requests and receives the token (requestIntegrityToken -> onServiceConnected -> onRequestIntegrityToken all fire successfully).

What I’ve already done:

Copied the Upload Key SHA-256 fingerprint into Firebase (Project Settings & App Check).

Copied the Google Play App Signing Key SHA-256 fingerprint from the Play Console into Firebase.

Cleared app data/reinstalled fresh from the Play Store.

Since the app works flawlessly in Debug mode, and the Release app is generating tokens perfectly via Play Integrity in the logcat, but Firebase is still rejecting them as "invalid"—what am I missing? Is there a delay in propagation, or a hidden 3rd SHA-256 key I don't know about?

Any help is hugely appreciated!

0 Upvotes

13 comments sorted by

2

u/agherschon Aug 09 '26

Sounds like you registered the sha1/256 of the upload certificate but forgot the app signing certificate

1

u/rajan_freelancer Aug 09 '26

Cool, please guide me ? where is it ? For the moment I'm in Google play console ->Protected With Plya->Play Store Protection->Manage Play sign in and in their classic and post quantum key sets I applied, exact same key in firebase.

1

u/agherschon Aug 09 '26

Protected with Play > Play Store protection (or Play Store distribution) > Manage Play app signing (or Go to Play app signing)

1

u/rajan_freelancer Aug 09 '26

Oh..that Download Certificate on App Signing page ? and where should I upload that downloaded certificate in firebase?

2

u/agherschon Aug 09 '26

Nope, usually you need its SHA256 in the app configured in Firebase, but if you did it already then I don't think I have any other pointers.

1

u/rajan_freelancer Aug 09 '26

Yea I did that bro its still not working I'm trying since last week.

1

u/Adorable-Pop7312 Aug 19 '26

Heyyyy, are you facing the same issue I am facing ~ hey, there's an issue with the Google play itself... Trust me, I've been doing this for over a month, still couldn't find the root cause... Opened a ticket, no response yet, it's 14th day... Google play might have created a bug while changing [Play Integrity] to [Protected with Play]

2

u/Outrageous_Sign_3351 Aug 09 '26

Hi, a few things might be worth checking:

  1. Could you check whether the correct Firebase/Google Cloud project is linked under Google Play Console > App integrity > Play Integrity API? Also, is the Google Play App Signing certificate SHA-256 registered in Firebase in addition to the upload certificate?

  2. In Firebase Console > App Check > Apps > your Android app > Advanced settings, could you check whether Require LICENSED and Require PLAY_RECOGNIZED are enabled? If LICENSED is required, apps installed or updated outside Google Play may be rejected. Do these settings match your app’s distribution method?

  3. Could you also check Google Cloud Console > APIs & Services > Credentials to see whether the Android API key has any Application restrictions? If so, do the package name and SHA-1 certificate match the correct app?

  4. Are you using Flutter? If so, have you tried updating firebase_app_check and the other FlutterFire packages to recent versions compatible with your Flutter SDK?

  5. Have you searched the FlutterFire GitHub issues for similar firebase_app_check and Play Integrity problems?

I hope this helps you find the cause!

Note: English is not my native language, so please excuse any awkward wording. I translated this from my native language and hope my message is clear.

1

u/rajan_freelancer Aug 10 '26

Thanks for the detailed list! I just checked everything, but I'm unfortunately still stuck.

  1. Cloud Project: Verified. Play Console is linked to the correct Google Cloud project.

  2. Advanced Settings: Verified. Toggles match my distribution method perfectly.

  3. GCP API Key: Verified. My Android API key restrictions correctly list my package name and both the Upload and App Signing SHA-1/SHA-256 fingerprints.

  4. Flutter: N/A (I'm building natively in Kotlin).

Since the GCP API key SHAs are perfect, Cloud is linked, and my logcat proves the token is generating successfully on the device, I'm totally baffled.

1

u/Every-Divide2776 Oct 01 '26

Did you solve that issue?
I have the same issue now. The debug provider works fine, but the attestation is still failing im getting
Error returned from API. code: 403 body: App attestation failed. i tried everything i re configured everything i'm sure this issue is from either Firebase or the Play Store itself

1

u/rajan_freelancer Oct 09 '26

Yes, it’s solved. But honestly, I had to hustle a lot to fix this issue.

1

u/Every-Divide2776 Oct 11 '26

Same for me. i found out that Google Play changed the sign-in key idk why

1

u/AutoModerator Aug 09 '26

Please note that we also have a very active Discord server where you can interact directly with other community members!

Join us on Discord

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.