: Consumable In App Purchases on Android
Hello Dan,
Thanks for the update.
RE 1, I *think* yes, but I would suggest you double check this anyway.
RE 2, I would suggest not using mobilePurchaseGet(). This function is from
the older API for in-app purchases, and we have kept it for backwards
f the lesson on the LC website was updated
> to these options/methods. It might save the next guy some grief.
>
> -Dan
>
>
> From: use-livecode on behalf of
> panagiotis m via use-livecode
> Date: Wednesday, August 9, 2023 at 7:51 AM
> To: How to use LiveCode
> Cc:
m via use-livecode
Date: Wednesday, August 9, 2023 at 7:51 AM
To: How to use LiveCode
Cc: panagiotis m
Subject: Re: Consumable In App Purchases on Android
Hello all,
Also, it might be worth trying this as well - add a new button with this
code:
on mouseUp
mobileStoreEnablePurchaseUpdates
h our display
>> break
>> case "error"
>> answer "Error occured during purchase handling:" & return & return
>> & mobileStorePurchaseError(pPurchaseID)
>> mobileStoreDisablePurchaseUpdates
>> break
>>
ak
> case "alreadyEntitled"
> answer "Already Owned."
> mobileStoreDisablePurchaseUpdates
> break
> case "restored"
> answer "restored"
> offerPurchasedProduct pProductID
> mobileStoreConfirmPu
//refresh our display
break
case "canceled"
case "cancelled"
answer "Purchase Cancelled:" && pProductID
mobileStoreDisablePurchaseUpdates
break
end switch
end purchaseStateUpdate
Do you see anything wonky in my code?
--D
urchases-in-livecode-google-play-store>
has a good example of this.
—Andrew Bell
> To: How to use LiveCode
> Subject: Re: Consumable In App Purchases on Android
> Message-ID:
>
>
>
> Content-Type: text/plain; charset="Windows-1252"
>
&g
otis m via use-livecode
Date: Tuesday, August 8, 2023 at 9:21 AM
To: How to use LiveCode
Cc: panagiotis m
Subject: Re: Consumable In App Purchases on Android
Hello Dan,
I think Google no longer differentiates between consumables and
non-consumables when setting up the in-app product - they are b
this helps.
Kind regards,
Panos
On Tue, 8 Aug 2023 at 01:57, Dan Friedman via use-livecode <
use-livecode@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
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
10 matches
Mail list logo