huawei-developershuawei-mobile-serviceshuawei-iap

Show prompt for HMS Core upgrade


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?


Solution

  • Please use activity:

    getIapClient(Activity activity)
    

    instead of context when calling this method.

    More details on Huawei developer site