I have added appcheck to my Flutter app. However, this does not work properly. I use Android and have entered all the keys correctly. However, every time I start the app, the following messages appear:
IntegrityService : requestIntegrityToken(IntegrityTokenRequest{nonce=<<long code>>, cloudProjectNumber=<<project number>>, network=null})
I/PlayCore(19441): UID: [10759] PID: [19441] IntegrityService : Initiate binding to the service.
I/PlayCore(19441): UID: [10759] PID: [19441] IntegrityService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.integrityservice.IntegrityService})
I/PlayCore(19441): UID: [10759] PID: [19441] IntegrityService : linkToDeath
I/PlayCore(19441): UID: [10759] PID: [19441] OnRequestIntegrityTokenCallback : onRequestIntegrityToken
I/PlayCore(19441): UID: [10759] PID: [19441] IntegrityService : Unbind from service.
W/LocalRequestInterceptor(19441): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed.
The problem is that all backend requests are unauthorised. How can I fix this problem?
please 1st verify that you have init the app check correctely.
if you believe that you have init the app check correctely thel try the following.
verify that
google-services.jsoncorrectly placed in the project.try to add SHA-256 key hashes in the firebase console also try by removing and adding it again.
also it may be helpful to go through following