i think somewhat is not fire in the library, or i forgot something in my app. But what ?
B4X:
Sub billingmanager_OwnedProducts (Success As Boolean, purchases As Map)
Log(Success)
If Success Then
Log(purchases)
For Each p As Purchase In purchases.Values
Log(p.ProductId & ", Purchased? " & (p.PurchaseState = p.STATE_PURCHASED)) '<<< always true
Log(p.ProductId & ", Canceled? " & (p.PurchaseState = p.STATE_CANCELED)) '<<< always false
Log(p.ProductId & ", Refunded? " & (p.PurchaseState = p.STATE_REFUNDED)) '<<< always false
Next
End If
End Sub
Can it be related to this?
I don't see support for "getPurchases" in this library
Local Caching
Because the Google Play client now caches In-app Billing information locally on the device, you can use the Version 3 API to query for this information more frequently, for example through a getPurchases call. Unlike with previous versions of the API, many Version 3 API calls will be serviced through cache lookups instead of through a network connection to Google Play, which significantly speeds up the API's response time.
Not sure what they mean with getPurchases. I think that they refer to the same API used by GetOwnedProducts. In previous versions they didn't allow calling this method when the app starts.