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

后端 未结 12 974
攒了一身酷
攒了一身酷 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:07

    Basic Requirements for Manual Testing

    In order to manually perform the full update flow on the test device, you should have at least two versions of the app with the different version number: a source version and a target version.

    • The source version with the higher version number should be published at Google Play, this is the version which will be identified by Google Play as an available update. The target version with the lower version number and integrated IAUs(In-App Updates) feature should be installed on your device, this is the version which will be updated. The thing is, when the app requests Google Play to check for available updates, it compares the version number of the installed app with the version number of the last available build-in Google Play. So the IAUs feature will be triggered only in case if the version number in Google Play is higher than actual version of the app on the device.
    • Both the source and the target versions need to have the same package name and should be signed with the same release certificate.
    • Android 5.0 (API level 21) or higher.
    • Play Core library 1.5.0 or higher.

    Update is Not Available ERROR

    First of all, please double-check the requirements mentioned above. If you successfully complete above listed steps in compliance with all requirements and still getting the error then please pay attention to the following trick. The most likely reason is that the Google Play app does not know about the update yet due to the internal caching mechanism. To make sure you have the cache fresh when testing manually you can refresh the cached version by going to the My Apps & Games screen in the Google Play app. Other, alternative, you can simply clear the cache of the Google Play app in the settings. Note that this is just an issue for testing and does not affect end users since the cache is updated daily anyway.

    Note - App Bundle is not mandatory for IAUs.

提交回复
热议问题