I am not able to settle this issue when implementing the new App Check feature from Firebase.
When uploading files to Firebase Storage it fails with an error
Caused by: java.io.IOException: { "error": { "code": 401, "message": "Firebase App Check token is invalid." }}
I already provided the debug secret just like what is in this documentation.
The debug apk was installed directly via USB debugging.
Note: I am using a physical device and enabled Enforce status on both Storage and Real-time database and it fails whenever I tried to do transaction like upload and the error above shows.
Run the App on Physical device. I was facing the same issue and but when i run the app on a physical device it is gone! Ensure you main run app funtion is like this
This is the code docs have mentioned: