I'm integrating in my app the Huawei services for publish in AppGallery. I have integrated the AppUpdateClient https://developer.huawei.com/consumer/en/doc/development/HMS-References/appupdateclient
I have published my app in AppGallery in "Open testing". I build the apk in release mode with a lower version code and I install it on my smartphone.
val client: AppUpdateClient = JosApps.getAppUpdateClient(activity)
client.checkAppUpdate(activity, object : CheckUpdateCallBack {
override fun onUpdateInfo(intent: Intent?) {
val status = intent?.getIntExtra(UpdateKey.STATUS, -1)
...
The status returned is always 3. Huawei documentation: 3: constant value NO_UPGRADE_INFO, indicating that no update information is available.
If I open the AppGallery it notify me that there is an update for the app and if I click on "Update" it update successfully the app.
How can I test the procedure from my app?
Open Testing does not support Update Interfaces. If you publish the “opentest version” of the app on AppGallery, you can update it there. But if you open your lower version of the app on your phone, the Update Interface cannot detect the “opentest version”of the app on AppGallery.
Solution:
Open Testing Service documentation