Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do i need to use Consume a Purchase if my app need only one time purchase item?

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.

like image 351
Herry Avatar asked Dec 31 '12 14:12

Herry


People also ask

Is in-app purchase a one time 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.

What does it mean when it says free with in-app purchases?

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.

Does In-app purchase mean it cost money?

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.

What is considered an in-app purchase?

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.


1 Answers

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.

like image 167
Vitthalk Avatar answered Sep 27 '22 23:09

Vitthalk