flutter_inapp_purchase icon indicating copy to clipboard operation
flutter_inapp_purchase copied to clipboard

Not getting Subscription List

Open MdFarhanRaja opened this issue 2 years ago • 9 comments

5.3.1

Android

Should return all ACTIVE subscriptions

Getting only one

Real Device

Screenshot 2022-08-10 at 2 38 27 PM Screenshot 2022-08-10 at 2 39 38 PM

MdFarhanRaja avatar Aug 10 '22 09:08 MdFarhanRaja

only getting first item #3_month_subcription_test

MdFarhanRaja avatar Aug 10 '22 09:08 MdFarhanRaja

have you solved?

yunchiri avatar Aug 13 '22 08:08 yunchiri

have you solved?

No

MdFarhanRaja avatar Aug 13 '22 16:08 MdFarhanRaja

have you solved?

How to solve this ?

MdFarhanRaja avatar Aug 13 '22 16:08 MdFarhanRaja

No , I'm same situation like you 🤣

yunchiri avatar Aug 15 '22 06:08 yunchiri

It might not help you guys but I faced a problem similar. I cannot get products if I pass only productID, I must pass productName also(or any string that I do not test) then I can get the products

AnhLT-Nexle avatar Aug 16 '22 02:08 AnhLT-Nexle

It might not help you guys but I faced a problem similar. I cannot get products if I pass only productID, I must pass productName also(or any string that I do not test) then I can get the products

how to pass productName ?

could you show me example code?

yunchiri avatar Aug 17 '22 04:08 yunchiri

It might not help you guys but I faced a problem similar. I cannot get products if I pass only productID, I must pass productName also(or any string that I do not test) then I can get the products

how to pass productName ?

could you show me example code?

I created the product in play console with name: Monthly Consumable and productID: monthly_consumable final products = await FlutterInappPurchase.instance.getProducts(["monthly_consumable", "Monthly Consumable"]); If I use FlutterInappPurchase.instance.getProducts with param is only productID then it returns list empty but with the params above it worked

AnhLT-Nexle avatar Aug 17 '22 08:08 AnhLT-Nexle

@MdFarhanRaja, @yunchiri I was having the same problem as you, it turns out we were using the wrong method to get signatures. I used getSubscriptions and it works fine.

I believe the getProducts method is made available only for consumable, not for subscriptions product.

RodolfoSilva avatar Sep 07 '22 19:09 RodolfoSilva

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] avatar Dec 07 '22 01:12 github-actions[bot]