Sundy
Sundy

Reputation: 91

HMS Core is outdated and an error is returned?

If HMS Core is outdated an error -1 core error is returned when calling IapClient.isEnvReady() There is a possibility to disable automatic update of the HMS Core. At some point, when it is outdated, if an app is started and there is a call to IapClient it always returns -1 core error. When HMS Core is updated and a device is restarted, then performing calls to IapClient works fine.

Is there any possibility to get meaningful error and, maybe, get an intent to update HMS Core?

Upvotes: 0

Views: 2023

Answers (2)

user1765054
user1765054

Reputation: 41

Go to Settings > Apps > Apps > HMS Core, then touch and Uninstall updates. 2. Go to Settings > Apps > Apps > HMS Core, then go to > Auto-update, and disable Auto-update over Wi-Fi.

Upvotes: 1

Zinna
Zinna

Reputation: 2025

The method "IapClient.isEnvReady()" is to check whether the currently signed-in HUAWEI ID is located in a location where HUAWEI IAP is available. If your HUAWEI ID is located in the supported locations, the check will pass.

In Addition, if HMS Core version of the test device is too low, the app will automatically call a pop-up asking the user whether to update HMS Core Apk.

Upvotes: 0

Related Questions