I recommend you to handle the OwnedProducts event. This will allow you to check the owned products when the program starts.
In the PurchaseCompleted event (and when your program starts) you can call manager.GetOwnedProducts. This will raise the OwnedProducts event:
B4X:
Sub manager_OwnedProducts (Success As Boolean, Purchases As Map)
If Success And Purchases.ContainsKey("YourProduct") Then
'Do what ever you need to do
End If
End Sub
I recommend you to handle the OwnedProducts event. This will allow you to check the owned products when the program starts.
In the PurchaseCompleted event (and when your program starts) you can call manager.GetOwnedProducts. This will raise the OwnedProducts event:
B4X:
Sub manager_OwnedProducts (Success As Boolean, Purchases As Map)
If Success And Purchases.ContainsKey("YourProduct") Then
'Do what ever you need to do
End If
End Sub