Android App login based on MongoDB Stitch, with email authentication, doesn't work after app publication on Google Play Store

Viewed 77

I have recently published an app on Google Play Store, uploading a signed app Bundle, and I let Google to sign the app with its certificate.

My app login is based on MongoDB Stitch, with authentication via email provider.

The app login works properly when installed via USB through Android Studio.

Instead, when the app is installed through the Google Play Store, the login fails.

I cannot understand where is the problem.

Any suggestion?

Thank you in advance, Claudio

1 Answers

1.Ensure you use same configurations for Release APK and Debug APK

 buildTypes {
    release {
        minifyEnabled false
        multiDexEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 
       'proguard.cfg'
    }

    debug {
        minifyEnabled false
        multiDexEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 
       'proguard.cfg'
    }

}
  1. If this didn't work try tracing your Logs I'm sure you will get what makes it not work
Related