Android Question Error in GooglePlayBilling library?

Jerryk

Member
Licensed User
Longtime User
I have two inapp products in GP Console for my application. I changed the status of one to Inactive, but when reading the available inapp products it loads both.
I can read ProductId, Name, ProductType, Title,.... but there is no information whether the product is Active or Inactive. Is it normal for it to load Inactive products?

B4X:
    lSKU_inapp.Initialize
    lSKU_inapp.Add("pro.gpbtest2")   ' status Inactive in GP Console
    lSKU_inapp.Add("pro.gpbtest3")

    'make sure that the store service is connected
    Wait For (billing.ConnectIfNeeded) billing_Connected (Result As BillingResult)
    'get the sku details
    If Result.IsSuccess Then
        Dim sf As Object = billing.QuerySkuDetails("inapp",  lSKU_inapp)
        Wait For (sf) Billing_SkuQueryCompleted (Result2 As BillingResult, SkuDetails As List)
        If Result2.IsSuccess And SkuDetails.Size > 0 Then
            For i = 0 To SkuDetails.Size - 1
            ...
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Just do a check for the inactive product id when you're looping through the SkuDetails list & ignore it. The other option is to actually delete the product from the console. It might take a little while to filter through all the Google servers though, so don't expect it to work immediately.

- Colin.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…