Reputation: 1
My Release APK version doesn't send Firebase authentication code while the Debug APK works well.
It send the code, but the release don't work at all.
Please, I need some help.
Upvotes: 0
Views: 164
Reputation: 724
in the firebase console, add release key.
1)Select your project in Firebase. 2) Inside your project, click on settings Icon-> Project Settings-> Add FingerPrint 3) Add Release key( Sha1 ) and save. 4) download the JSON file by clicking on google-services.json. 5) Add this json file in the app folder. 6) Rebuild the the Android Project 7) Install the updated app and test.
Upvotes: 1
Reputation: 396
Please check you build.gradle for the minify -
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}}
if you have this enabled then you have to use proguard to keep classes and interfaces which might be removed because of minify.
See here : https://developer.android.com/studio/build/shrink-code.html
Upvotes: 0