Hi there,
Is there a method or code using B4i to check if user has a active subscription of my product?
Using B4a with google in app purchases you can check using:
I've implemented in B4a without using a backend, all inside my app. is this possible in B4i?
Thank you
Is there a method or code using B4i to check if user has a active subscription of my product?
Using B4a with google in app purchases you can check using:
B4X:
Wait For (billing.QueryPurchases("subs")) Billing_PurchasesQueryCompleted (Result As BillingResult, Purchases As List)
If Result.IsSuccess Then
If Purchases.Size > 0 Then
For Each p As Purchase In Purchases
If p.Sku = "myProduct" Then
If p.PurchaseState = p.STATE_PURCHASED Then
Return True
End If
End If
Next
end if
end if
return false
I've implemented in B4a without using a backend, all inside my app. is this possible in B4i?
Thank you