Search code examples
firebasefluttergoogle-signinrelease

google sign in doesn't work in release mode?


my app is made with flutter. I am using firebase to google sign in option. And I added SHA keys when I am on debug mode. so, can I know SHA key is depends on the debug mode & release mode?

And also can I know how I am see/monitor release mode activities?


Solution

  • Yes, firebase requires a different fingerprint for release mode, please generate keys using this command,

    keytool -list -v -keystore {keystore_name} -alias {alias_name}
    
    example:
    
    keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test
    

    To monitor events, you can integrate Firebase Crashlytics into your project.

    to temporarily debug your app in release mode run

    flutter run --release