RxIAPv3 icon indicating copy to clipboard operation
RxIAPv3 copied to clipboard

getSubscriptionListingDetails always return null

Open mouness2020 opened this issue 8 years ago • 5 comments

Hello,, i have problem that getSubscriptionListingDetails always return null however its works fine with anjlab/android-inapp-billing-v3 ... why??

ok i debug the code and i founded billingService = null in

private List<SkuDetails> getSkuDetails(ArrayList<String> productIdList, String purchaseType) {
		if (billingService != null && productIdList != null && productIdList.size() > 0) {
			try {......

so why null i already called BillingProcessor.init(this); in OnCreate -> MyApplication

is there event called when billingService ready before getSubscriptionListingDetails?

mouness2020 avatar Nov 20 '16 10:11 mouness2020

I just wanted to let you know that I'm having this same issue.

mruijzendaal avatar Jan 18 '17 23:01 mruijzendaal

i revert back to original library https://github.com/anjlab/android-inapp-billing-v3

mouness2020 avatar Jan 19 '17 07:01 mouness2020

If billingService is null, then something else might have happened. I am not quite sure about that, because I would need to debug it under the same conditions !

pavlospt avatar Jan 19 '17 08:01 pavlospt

Steps to reproduce:

  1. Create billingprocessor in main activity.
  2. Immediately query subscription details.
  3. Done.

I guess the billingprocessor is stoll initializing. Maybe put all rx queries in some kind of queue when that's happening?

mruijzendaal avatar Jan 19 '17 09:01 mruijzendaal

is there event called when billingService ready before getSubscriptionListingDetails?

mouness2020 avatar Jan 19 '17 10:01 mouness2020