Android Question inapp builling products activation

hookshy

Well-Known Member
Licensed User
Longtime User
I have problems with with the purchasses
the sub owned Products returns 0 size map as if I have no products added to console

It has passed quite some time from the time I have activated the products ...already done the procedure corectly for other app.

Do you have any idea when or how google activates the services ...I did already set active my inapp product ?
Anyone had this problem ? how this was fixed ?

B4X:
Sub manager_OwnedProducts (Success As Boolean, purchases As Map)

   If Success Then
 
log(purchases.size) 'this returns 0

      For Each pu As Purchase In purchases.Values
     
  
         If pu.ProductId="noads" AND pu.PurchaseState=pu.PurchaseState Then
       
         adon=True
          
         End If
   
      Next
end sub
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
purchases will only return the number of items you have actually purchased - ie: it won't tell you what items are available to buy. There doesn't seem to be a way to get a list of available items using the library because it doesn't implement the getSkuDetails() method of the In-App Billing 3 SDK. This link might help explain the differences between the SDK & the B4A library.

- Colin.
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
purchases will only return the number of items you have actually purchased - ie: it won't tell you what items are available to buy. There doesn't seem to be a way to get a list of available items using the library because it doesn't implement the getSkuDetails() method of the In-App Billing 3 SDK. This link might help explain the differences between the SDK & the B4A library.

- Colin.

Yes I guess you are right and I was to much upset that I did not see all working

The error I get when trying to puchase is that the purchase could not be done because the product is not availlable .

here is the routine that I use ...
not exactly know what "developerPayload as string" is ????
this is the id exatly how it was defined : noads
i have set inapp and chose
B4X:
manager.RequestPayment("noads","inapp","com.hsw.voice")
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
I did everthing work for another app : safecraker I have set up my wife as test adress
When I try to use my phone to safecraker app it say : I do not have permision to buy
when I try to use my phone to hsw voice app it say : Product not availlable same for my wife who did purchase no_ads product on safecraker app
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
The error I get when trying to puchase is that the purchase could not be done because the product is not availlable .

here is the routine that I use ...
not exactly know what "developerPayload as string" is ????
this is the id exatly how it was defined : noads
i have set inapp and chose
B4X:
manager.RequestPayment("noads","inapp","com.hsw.voice")
The Developer Payload is just a string that you can define. According to the Google documentation, it's used to provide supplemental info about the purchase. I just put the app name in mine.

Just double check that you are using the correct License Key (ie: you haven't copied the one from your other app) & that the Product Type is set up correctly in your console (ie: it's set up as a Managed Product & not a Subscription). Other than that, I'm not sure - it's pretty straightforward, so maybe it is taking a long time to update on the Google end.

- Colin.
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
Thanks ,
For one of the app versions the problem was solved ..I will come back as soon as I find out what is the problem .... I see lately that google did not updated the info on console from Wednesday
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
I have found out ...!
You have to test exact version of the app with the one that is loaded into beta testing , and follow the guidelines for valid id ...

Sometimes google tells you explicit that it is problem with the version of the app ...other it returns the error and tells the product is not available for purchase as if it is not active
 
Last edited:
Upvote 0
Top