-2

Flutter Firebase not working when used in release mode while the app is working perfectly fine when in debug mode. I have added SHA-1 fingerprints but it didn't help.

ps. I have also connected back4app database in the app.

2 Answers2

1

I solved the error by adding these two lines in the android/app/build.gradle :

buildTypes {
    release {
        shrinkResources false
        minifyEnabled false
        signingConfig signingConfigs.debug
    }
}

enter image description here

Yeasin Sheikh
  • 16,243
  • 4
  • 15
  • 37
0

SHA-1 is different between release and debug

update

Generate SHA-1 for Flutter/React-Native/Android-Native app