I\'m using firebase ui in my app for login. everything works fine when i run it in debug mode - no errors at all. I\'m running it through my cellphone and it works fine!
When you use the debug mode, the signing key used is for debugging only, it is a debug sign-in key. For published apps, your signing key should be the one used in the Play Console.
If you've published your app successfully to the Play store then you've already generated the required SHA-1 certificate fingerprint. And, yes it is the release-signing key which is required for published apps.
Here's how to get the required signing key from your Google Play Console:
You will also need to add this SHA1 fingerprint to your Firebase Console:
Hope this helps.
Useful Links:
https://developer.android.com/studio/publish/app-signing
How to enable Google Play App Signing