How can I test In-app updates in Android?

前端 未结 8 1553
死守一世寂寞
死守一世寂寞 2020-12-14 16:05

Recently, Google introduced \'in-app updates\' in Google I/O 2019.

So I am trying to use it.

val appUpdateManager = AppUpdateManagerFactory.create(th         


        
相关标签:
8条回答
  • 2020-12-14 16:31

    In my case, I have done the next steps:

    1. Uninstall original app from device.
    2. Install the app from Google Play Store (I already had my app in Store, but if you don´t have it, you can create an alpha or beta version, without publish it in store).
    3. Unistall the app again.
    4. Generate signed apk with the new feature, with a lower versionCode than Google Play version
    5. Install this apk.

    When it starts, it checks the new version in Google Play Store, and shows the assistant for update it. If this solution works in a device but not in anothers, try to log in with the same Google account, and try the 5 steps again in this device. Then you can use your original account again. For some crazy reason, it appears that Google Play "activate" the version control and it returns that a version is available again in the rest of devices.

    I don´t know exactly the behaviour...

    0 讨论(0)
  • 2020-12-14 16:32

    Internal Test Tracks in the Google Play Console are an excellent tool to use when testing In-App Updates.

    0 讨论(0)
提交回复
热议问题