I am using Version 3 API for in App Purchase in my application. I am confuse about should i have to call
mHelper.consumeAsync(inventory.getPurchase(SKU_GAS),
mConsumeFinishedListener);
above method if my application need only one time Purchase of my in app product .
In demo example of In App purchase API 3 they are calling consumeAsync for following listener so why they are calling consumeAsync ?.
1.QueryInventoryFinishedListener when your Product id has purchased.
2.OnIabPurchaseFinishedListener when your product purchase successfully.
Please explain me when to use consumeAyncs method for In app purchase.
You buy these items one time, and you can transfer them to other devices that are associated with your Apple ID. If you lose a non-consumable purchase, you might be able to download it again for free. Restore your in-app purchase.
In-app purchases allow developers to provide their applications for free. The developer then advertises upgrades to the paid version, paid feature unlocks, special items for sale, or even ads other apps and services to anyone who downloads the free version.
An in-app purchase is any fee an app may ask for. Many in-app purchases are optional or give users additional features. Others serve as subscriptions and require users to sign up and pay a fee to use the app – often after an initial free trial.
An in-app purchase is any additional purchase made within an app, like extra lives in a game. You can turn in-app purchases on or off on Apple and Android devices with just a few taps.
In App purchase version 3 supports Managed product only. when application want to implement unmanaged product so that end user can buy same product again when require, Application needs to consume previously purchased product to make it available to purchase again. As per your application requirement, Your product type is Managed. it means that you need not to call consumeAsync at all. Because in this case, you can restore your product to end user device, if device does factory reset operation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With