Huawei IAP When select Chinese mainland : MAJOR:22: Integrate the version update API (checkUpdate)

417 Views Asked by At

I have an error when select Chinese mainland:

MAJOR:22: Integrate the version update API (checkUpdate). If you already integrate the API, check whether the HMS SDK code is obfuscated in the configuration file. For details about how to modify the configuration file, visit https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/appgallerykit-preparation#h1-1574846682104 ;SUGGESTION:17: HMS SDK APIs that are called: 34: Integrated HMS services: [agconnect-core, iap, base]

Does anyone know how to solve this?

Thank You.

2

There are 2 best solutions below

3
On BEST ANSWER

(1)MAJOR:22:——For this,you can integrate the version update API (checkUpdate), referring to following link.

(2)SUGGESTION:17、30 and 34,——you can ignore it, Manual approval prevails.

0
On

The documentation has changed: Updating an App & ProGuard.

This would be the dependencies:

dependencies {
    implementation "com.huawei.hms:base:6.12.0.301"
    implementation "com.huawei.hms:hmscoreinstaller:6.12.0.301"
    implementation "com.huawei.hms:appservice:6.12.0.300"
}

Which provide the classes used in the documentation:

import com.huawei.hms.jos.AppParams;
import com.huawei.hms.jos.AppUpdateClient;
import com.huawei.hms.jos.JosApps;
import com.huawei.hms.jos.JosAppsClient;

import com.huawei.updatesdk.service.appmgr.bean.ApkUpgradeInfo;
import com.huawei.updatesdk.service.otaupdate.CheckUpdateCallBack;
import com.huawei.updatesdk.service.otaupdate.UpdateKey;

Beside the technical aspect, an ICP filing is required by law, which ultimately depends on the Unified Social Credit Identifier. Unless having a Chinese company, there doesn't seem to be a way. When not distributing the app to "Mainland China", it may not be rejected without review.