paqadvault
paqadvault

Reputation: 1

My mobile application does not work when generated the release APK, but work perfectly on debug APK

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

Answers (2)

tanni tanna
tanni tanna

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

Atendra Singh
Atendra Singh

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

Related Questions