Give us feedback
hms-iap-sample
Mobile icon

HMS IAP Sample

Stable version 6.10.0 (Compatible with OutSystems 11)
Uploaded on 02 November 2023 by 
0.0
 (0 ratings)
hms-iap-sample

HMS IAP Sample

Details
This sample shows the use of the HMS In-App Purchases plugin.
Read more

HMS IAP plugin sample mobile application.


Example app showing all implementations in HMS IAP plugin.


The demo app does not contain agconnect-services file. You can create a agconnect-services file via this link

Release notes (6.10.0)

New Features

  • Added enablePendingPurchase to HMSInAppPurchases .

  • Added result code 60057. Check the new code in Result Codes.

  • Added error code 1. Check the new error code in Result Codes.

  • Added the offerUsedStatus, status, subFreeTrialPeriod and subGroupId parameters to ProductInfo.

  • Updated isEnvironmentReady(boolean isSupportAppTouch) method in HMSInAppPurchases. Your app will use this method to check whether the currently signed-in ID is located in a country or region where HUAWEI IAP is available. If your app is to be released on AppTouch, use isEnvironmentReady(boolean isSupportAppTouch) instead of isEnvironmentReady and pass true.

  • Added the country and carrierId parameter to IsEnvReadyResult.

  • Added a class of constants, named SignAlgorithmConstants, which contains the algorithm that you pass for calling a certain IapClient API.

  • Added SignatureAlgorithm parameter to ConsumeOwnedPurchaseReq ; allowed for the operation of passing the signature algorithm specified in SignAlgorithmConstants to the consumeOwnedPurchase method; added the SignatureAlgorithm parameter to the ConsumeOwnedPurchaseResult .

  • Added SignatureAlgorithm parameter to OwnedPurchasesReq; allowed for the operation of passing the signature algorithm specified in to obtainOwnedPurchases and obtainOwnedPurchaseRecord methods; added the SignatureAlgorithm parameter to OwnedPurchasesResult.

  • Added SignatureAlgorithm parameter to PurchaseIntentReq; allowed for the operation of passing the signature algorithm specified in SignAlgorithmConstants to the createPurchaseIntent method;

  • Added the SignatureAlgorithm parameter to the PurchaseResultInfo.

  • Added the reservedInfor paramter to the ConsumeOwnedPurchaseReq, OwnedPurchasesReq and ProductInfoReq.

Modified Features

  • Adapted to Android 13 and updated targetSdkVersion to 33.

  • The return type of the createPurchaseIntent method has changed to PurchaseResultInfo.

License (6.10.0)
Reviews (0)
Team