Android Question Google in app subscription

ilan

Expert
Licensed User
Longtime User
hi

i try to add an inapp subscription to my app but i fail.
is there an example on how to do it?
i only find part code but not a full example.

thanx
 

ilan

Expert
Licensed User
Longtime User
Upvote 0

aeric

Expert
Licensed User
Longtime User
Are you using test subscription?
1670234966279.jpeg
 
Last edited:
Upvote 0

ilan

Expert
Licensed User
Longtime User
thanx @aeric for your reply, i am using Test Card like in your pic so i guess this is my i also get / 5 minutes.
so with a real card it will show correctly right?

second question how is the check process done? to see if the user is subscribed if not show the subscribe dialog
thanx
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
so with a real card it will show correctly right?
Not sure but I think it should be yes.

to see if the user is subscribed if not show the subscribe dialog
It is same for subs and inapp product.
B4X:
If p.IsAcknowledged = False Then
    'we either acknowledge the product or consume it.
    Wait For (billing.AcknowledgePurchase(p.PurchaseToken, "")) Billing_AcknowledgeCompleted (Result As BillingResult)
    Log("Acknowledged: " & Result.IsSuccess)
End If
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Not sure but I think it should be yes.


It is same for subs and inapp product.
B4X:
If p.IsAcknowledged = False Then
    'we either acknowledge the product or consume it.
    Wait For (billing.AcknowledgePurchase(p.PurchaseToken, "")) Billing_AcknowledgeCompleted (Result As BillingResult)
    Log("Acknowledged: " & Result.IsSuccess)
End If
thanx i will try it.

thank you, this information is what i needed :)
 
Upvote 0
Top