Android Question manager.getowndedproducts latency

tufanv

Expert
Licensed User
Longtime User
Hello,

When I use manager.getownedproducts on activity create, it takes some time for the inventory to be loaded and ecause of this latency I am having some problems. IS tere an event trggered when getownedproducts load completed ?

TY
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Sub manager_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))
      Next
   End If
End Sub
 
Upvote 0
Top