mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.8k stars 273 forks source link

Firebase App Check Support #1689

Open hasankarli opened 7 months ago

hasankarli commented 7 months ago

I build a flutter app. My app use Firebase App Check, i submit apk on cloud but flow failed. Because when uses app check, you need to add debug token on firebase or download on playstore. So how can i fix this situation?

Thank you

Framework: Flutter

bartekpacia commented 3 months ago

Hi, thanks for creating an issue.

I'm not familiar with how App Check works. Could you explain what the feature request is here in more details?

hasankarli commented 3 months ago

Firebase App Check generates tokens for using Firebase resources or backend APIs. When using a real device, Firebase generates a token that you can use directly. However, when using an emulator or simulator, Firebase generates a debug token and logs it.

You need to upload this debug token to the Firebase console to use the App Check token with the emulator or simulator.

Maestro Cloud uses an emulator, so you need to get the debug token and upload it to the Firebase console.

bartekpacia commented 3 months ago

However, when using an emulator or simulator, Firebase generates a debug token and logs it.

I see. Let me ask some more questions to make sure I understand: so this token, generated by App Check, is different for every emulator, right? When you restart the app on the same emulator, it's the same? But since on Maestro Cloud you run on a different device each time, it's causing problems.

hasankarli commented 3 months ago

generated by App Check, is different for every emulator, right?

Yes

When you restart the app on the same emulator, it's the same?

Yes

Additionally, I couldn't see the debug token in the log, so I can't add it to the Firebase console.