Android Emulator cannot access Firebase with App Check in Enforcement mode #9284
Unanswered
lukertaylor
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.
-
Hello,
I have set-up App Check and followed the instructions (https://firebase.google.com/docs/app-check/android/debug-provider#kotlin+ktx_1) to successfully generate debug secrets on a physical Android device and the Android Emulator.
After installing the Debug Tokens in the Android Firebase app, the physical Android device works fine, but the Android Emulator cannot access Firestore:
/Firestore(): (24.2.1) [WriteStream]: () Stream closed with status: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}.
W/Firestore(): (24.2.1) [Firestore]: Write failed at [path removed] 3: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}
E/flutter (): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.
Is there a workaround? Or can I only debug on a physical device?
Thank you for any help received.
Luke
Beta Was this translation helpful? Give feedback.
All reactions