Unfortunately, I don't have any log files or whatever, but here's what some clients complain about:
After successfully purchasing an in-app product, and everything works as expected, this in-app purchase is not recognized from time to time.
Here's the code I use:
I really don't know the cause of the problem. Does it, for example, need internet connectivity at the time of loading? Perhaps, I should store locally the product?
Any help is appreciated, thank you!
After successfully purchasing an in-app product, and everything works as expected, this in-app purchase is not recognized from time to time.
Here's the code I use:
B4X:
In activity_create
if firstTime then
manager.Initialize("manager", keyInApp)
end if
Then:
Sub Manager_BillingSupported (Supported As Boolean, Message As String)
If Supported Then
manager.GetOwnedProducts
End If
End Sub
Sub manager_OwnedProducts (Success As Boolean, purchases As Map)
If Success Then
For Each p As Purchase In purchases.Values
If p.ProductId="myProductID" And p.PurchaseState=p.STATE_PURCHASED Then
someFlag=true
End If
Next
continueWithLoadingScreen
End Sub
I really don't know the cause of the problem. Does it, for example, need internet connectivity at the time of loading? Perhaps, I should store locally the product?
Any help is appreciated, thank you!