
Hi,
I understand that Google Sign-In is working in debug mode but not in the release APK. This issue occurs because the SHA keys used for authentication in Firebase are different for debug and release versions.
1️⃣ Upload Your App to the Play Store (Even in Internal Testing)
2️⃣ Find and Add These SHA Keys in Firebase
3️⃣ Download and Replace google-services.json
google-services.json
file from Firebase.google-services.json
file in your Flutter app.4️⃣ Rebuild and Test
Since your app is not yet on the Play Store, Google cannot verify the SHA keys for the release build, causing Google Sign-In to fail. Once you complete the above steps, it should work fine.
Let me know if you need any help with this setup! 😊
Regards,
Mr. Priyank
Sure I did that yesterday...
Actually when i run Debug console from my phone from VSCode the Google signin works but when I release apk and run from my phone the google sign in doesnt work again..
Its so weird..
Whether you're troubleshooting an issue or looking for step-by-step guidance, our resources are designed to empower you with the knowledge you need
Hi,
I just wanted to check if my previous explanation helped clarify your doubt regarding Google Sign-In and Mobile OTP login. Were you able to follow the steps, or do you need any further assistance?
Please let me know so I can help you resolve this issue. Looking forward to your response!
Regards,
Mr. Priyank