Android-inapp-billing-v3: `null` SkuDetails result from `getPurchaseListingDetails`

Created on 21 Nov 2016  路  3Comments  路  Source: anjlab/android-inapp-billing-v3

I am getting null response when I call bp.getPurchaseListingDetails(MY_PRODUCT_ID);. Any help?

Most helpful comment

I figured it out. I was calling this method in onCreateView. At this instance the onBillingInitialized() was not called back. I had to wait until onBillingInitialized is called.

All 3 comments

I figured it out. I was calling this method in onCreateView. At this instance the onBillingInitialized() was not called back. I had to wait until onBillingInitialized is called.

Yes Rishabh you are saying right, we have to wait untill onBillingInitializes is called and then bp.getPurchaseListingDetails(MY_PRODUCT_ID) will return SkuDetails object.

I am calling this method on BillingInitialized but the same error is occuring

Was this page helpful?
0 / 5 - 0 ratings