flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [FIREBASE APP CHECK] App attestation failed. getToken() API.

Open elirehema opened this issue 2 years ago • 13 comments

Bug report

Describe the bug I have implemented the app check as instructed in then documentation

Steps to reproduce

Steps to reproduce the behavior:

  1. Install the firebase app check
  2. Use the same example provided in the installation documentation
  3. See the following steps by app check and the error message

Expected behavior

Expected to receive integrity token

Sample project

Please link to the public repository URL. https://github.com/elirehema/sampleintegrity


Aditional infos

This is what i get as an error

image

Flutter doctor

Run flutter doctor and paste the output below: image

Click To Expand
PASTE OUTPUT INSIDE HERE

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
![image](https://github.com/firebase/flutterfire/assets/29277048/1fbf9223-89fa-4a7c-87c7-2048468a8f53)

elirehema avatar May 16 '23 22:05 elirehema

Thanks for the report. Using the repo provided and integrating it with local firebase project, I was able to replicate the reported behavior.

darshankawar avatar May 17 '23 10:05 darshankawar

Hello, have the same issue. Does anyone have any updates connected with this issue?

SadMitsuyaMood avatar May 19 '23 08:05 SadMitsuyaMood

same happen to me using following version in pubspec.yaml

 firebase_core: ^2.9.0
 firebase_analytics: ^10.2.0
 firebase_auth: ^4.4.1
 firebase_messaging: ^14.4.0
 firebase_app_check: ^0.1.2+1

charleshoong97 avatar May 24 '23 08:05 charleshoong97

Hi, is there any update for this issue? I'm still facing it.

charleshoong97 avatar May 28 '23 11:05 charleshoong97

waiting to solve the issue...

mashoodpv avatar May 29 '23 19:05 mashoodpv

any update on this issue ?

salim97 avatar Jul 20 '23 14:07 salim97

Hey @elirehema - if in debug mode, it is likely because the debug token has expired and you need to update. If in release mode, you need to have the app in playstore for play store provider to work along with the requisite app signing SHA key in your Firebase console.

russellwheatley avatar Jan 18 '24 11:01 russellwheatley

It still doesn't work in release mode(provided the sha is added and app is uploaded in play store(internal test))

LabN36 avatar Jan 30 '24 21:01 LabN36

Facing the same issue, provided the sha is added and app is uploaded in play store(internal test)

jingjiewei avatar Mar 06 '24 23:03 jingjiewei

Same issue here, does anyone have a fix for it?

sheinix avatar Mar 06 '24 23:03 sheinix

It still doesn't work in release mode(provided the sha is added and app is uploaded in play store(internal test))

I had the same issue, but while I was reviewing the configuration found that I forgot to add an app release SHA-256 from the google play console -> app signing tab to the app check fingerprints on the FB project. So after it starts working for the versions from the internal test. May be helpful.

SadMitsuyaMood avatar Mar 13 '24 12:03 SadMitsuyaMood