In-App Update API showing UPDATE_NOT_AVAILABLE while testing on debugging device

后端 未结 12 942
攒了一身酷
攒了一身酷 2020-12-29 12:22

I am trying to integrate the new In-App Update API but I cannot able to test it\'s implementation. Seems like my code is fine therefore I read the Troubleshoots and am not a

12条回答
  •  [愿得一人]
    2020-12-29 13:04

    I struggled with this same problem for a few days before once again going through the documentation thoroughly. Read this section on the official documentation of the in-app updates.

    The link describes the correct testing procedure as follows:

    1. On your test device, make sure you've already installed a version of your app that meets the following requirements:

      • The app was installed using an internal app sharing URL
      • Supports in-app updates
      • Uses a version code that's lower than the updated version of your app
    2. Follow the Play Console instructions on how to share your app internally. Make sure you upload a version of your app that uses a version code that's higher than the one you have already installed on the test device.

    3. On the test device, only click the internal app-sharing link for the updated version of your app. Do not install the app from the Google Play Store page you see after clicking the link.
    4. Open the app from the device's app drawer or home screen. The update should now be available to your app, and you can test your implementation of in-app updates.

    This is also super helpful because you don't have to wait for the app to be published, you can start testing immediately.

提交回复
热议问题