Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between managed and unmanaged in-app product android?

I went through the developer forum to know the difference between managed an unmanaged in-app products. they are saying that "Items that are unmanaged do not have their transaction information stored on Android Market, which means you cannot query Android Market to retrieve transaction information for items whose purchase type is listed as unmanaged. You are responsible for managing the transaction information of unmanaged items." What does it mean? When i test the in-app product for both managed and unmanaged im getting proper response from server, in my merchant account also the order is getting displyed for both managed and un-managed app. please help me to know the difference between these two.

like image 521
Andro Dev Avatar asked Feb 22 '12 08:02

Andro Dev


2 Answers

UnManaged could be something like "Buy 50 points"

The 50 points would then be added to your account and you would store this on your accounts server, therefore the Android Market no longer needs to know that you purchased this product i.e. it will not remember your purchase and you can purchase it multiple times.

Managed could be "Buy this song"

In this scenario you do not have a server to record that they bought the song and so every time they reinstall you can query the market to see they bought the song and it will not let you download it more than once.


Managed is aimed at one time downloads then you 'own that object'.

UnManaged is for multiple downloads of the same thing to 'top something up'.

Least thats my understanding.


Version 3 has the concept of 'consumables' and it works inline with the above. All products are managed but you can 'consume' a product.

i.e. "Buy 50 points" will give the user fifty managed points, the user will not be allowed to purchase that item again until you consume that product.

Therefore you can make unmanaged products by consuming instantly, or managed products by consuming when the user has "used" that product (i.e. never call consume for buying a song).

like image 121
Blundell Avatar answered Oct 02 '22 17:10

Blundell


As of Version 3 of the Android Billing API, both consumable and non-consumable goods can be managed. From what I've gathered if you want to use the version 3 billing API, all your IAPs must be "managed".

Here's a link to the documentation: http://developer.android.com/google/play/billing/api.html#consumetypes

like image 20
Alexander Wong Avatar answered Oct 02 '22 16:10

Alexander Wong