skip to Main Content

We’ve developed an app that works flawlessly when run from Android Studio with the following configuration:

buildTypes {
    debug {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

To simulate a Google Play store installation, we selected "Deploy: APK from app bundle".

enter image description here

However, the bug (which prevents restoring user preferences) doesn’t manifest when we run the app from Android Studio. It only appears when we install the app on an emulator directly from the Google Play store.

Our app is deployed as an App Bundle. Do you have suggestions on setting up a test environment that more closely mirrors the conditions of a Google Play download?

2

Answers


  1. Chosen as BEST ANSWER

    I've identified the following steps to reproduce a problem that occurs only with the App bundle uploaded to Google Play.

    // Generate APKs.
    bundletool build-apks --bundle=~/Desktop/com.xxx-536-5.36-release.aab --output=~/Desktop/output.apks --ks=~/xxx/my-release-key.jks --ks-key-alias=xxx
    
    // Install APK to connected device. Connected device can be an emulator.
    bundletool install-apks --apks=~/Desktop/output.apks
    

  2. Do you have suggestions on setting up a test environment that more
    closely mirrors the conditions of a Google Play download?

    Yes. I can recommend you to use Google Play Internal Testing.

    How to setup

    Doc

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search