App Check in Flutter doesn't work with Firebase Storage #7699
Unanswered
ThomasGysemans
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've once again a problem with
Flutter
andFirebase
. I have created a whole new project entitled "test_app_check".I have followed the steps of installation for a Firebase project as usual and I have initialized Firebase Authentication, Firebase Storage and App Check. I have enforced App Check on the storage feature.
Here is my code:
main.dart
pubspec.yaml
:android\app\src\main\kotlin\com\example\test_app_check\MainActivity.kt
:android\app\build.gradle
:android\build.gradle
:When I run the code, I have this:
In this huge message there are two weird things: first the user is considered as "authenticated" according to my
print
. A few microseconds later:User is not authenticated, please authenticate using Firebase Authentication and try again
. Second weird thing, I haveError getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed
whereas it should print the debug token as explained in the documentation...Note:
Beta Was this translation helpful? Give feedback.
All reactions