Consumable In App Purchases on Android
dan at clearvisiontech.com
Tue Aug 8 12:35:19 EDT 2023
Thank you for the reply. Unfortunately, this isn’t working for me… maybe I’m doing something wrong? Product ID is “1001”. I was able to purchase that product no problem. If I attempt to purchase it again, I get “alreadyEntitled”.
In a button I put:
answer the result
The result is empty (I assume that is success). Then, I attempt to purchase 1001 and again I get “alreadyEntitled”.
I then tried (just guessing at what I need to do as the docs are very vague on how to use it):
answer the result
Again, result is empty and an attempt to purchase 1001 again, gets “alreadyEntitled”.
What am I doing wrong?
From: use-livecode <use-livecode-bounces at lists.runrev.com> on behalf of panagiotis m via use-livecode <use-livecode at lists.runrev.com>
Date: Tuesday, August 8, 2023 at 9:21 AM
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: panagiotis m <merakosp at gmail.com>
Subject: Re: Consumable In App Purchases on Android
I think Google no longer differentiates between consumables and
non-consumables when setting up the in-app product - they are both marked
as "In-App Products”. However, in LiveCode, you have to call
mobileStoreConsumePurchase pProductID to be able to buy the product again -
otherwise you get a "alreadyEntitled" status.
If you do this, and still get "alreadyEntitled", then you have to ensure
that the pProductID param passed to mobileStoreConsumePurchase indeed
matches exactly the product id of the product you set up in the google dev
Hope this helps.
On Tue, 8 Aug 2023 at 01:57, Dan Friedman via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Does anyone have any experience with consumable in-app purchases on
> Android? I can’t seem to figure out how to (1) create a consumable
> product, and (2) how to consume it. mobileStoreConsumePurchase pProductID
> doesn’t seem to function right… I get back a result that is “true”, but
> attempting to purchase the same product, returns “alreadyEntitled”.
> The “How do I implement in-app purchases in LiveCode - Google Play Store?”
> lesson says: click "In-App Products” and click “Add new product”. From
> there, follow the instructions to create the type of in-app purchase you
> wish to use.
> In Google Play Console > Monitize > In-App Products > Create Product,
> there isn’t a place to select the type of in-app purchase.
> Any insight or instructions you may have would be greatly appreciated!!
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode