I used getIapClient(Context context)
in my app for object instantiation. The app could not work well with devices with older versions of HMS core.
How to make the app show a prompt for HMS core upgrade?
Please use activity:
getIapClient(Activity activity)
instead of context when calling this method.
More details on Huawei developer site