Hi,
I can successfully make a purchase, but the purchases completed event is not raised.
The billing manager code is a services, I call the "InAppBillingService.Manager.RequestPayment" from my main activity, where I can make a payment on my test account through google.
However, the following event is not raised...
The product is purchased because I have a check to consume any owned products when the app starts in case of a connection fail during a purchase. When I start the app, the product is consumed and distributed within the app....but this should happen immediately in the PurchaseComplete event.
Update...this event is only raised if I place the code in the main activity. How can i force it to raise if the code is in the service module?
I can successfully make a purchase, but the purchases completed event is not raised.
The billing manager code is a services, I call the "InAppBillingService.Manager.RequestPayment" from my main activity, where I can make a payment on my test account through google.
However, the following event is not raised...
B4X:
Public Sub manager_PurchaseCompleted (Success As Boolean, Product As Purchase)
Log(Success)
If Success = True Then
Log("You purchased " & Product.ProductId)
Manager.ConsumeProduct(Product)
End If
End Sub
The product is purchased because I have a check to consume any owned products when the app starts in case of a connection fail during a purchase. When I start the app, the product is consumed and distributed within the app....but this should happen immediately in the PurchaseComplete event.
Update...this event is only raised if I place the code in the main activity. How can i force it to raise if the code is in the service module?
Last edited: