dooboolab-community / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
549 stars 235 forks source link

PlatformException(getSubscriptions, E_NOT_PREPARED, IAP not prepared. Check if Google Play service is available., null) #390

Closed devr097 closed 1 year ago

devr097 commented 1 year ago

When trying to run the getSubscriptions, I got this error final List _productIds = [ 'plus_sub', 'plus_diamond', 'plus_subscription_android', 'diamond_subscription_android', ]; FlutterInappPurchase.instance.getSubscriptions(_productIds);

How to fix this error?

radheyshyamideastoimpacts commented 1 year ago

Before using make sure you initialized like: await FlutterInappPurchase.instance.initialize();

devr097 commented 1 year ago

Thank you for your reply. I tried to run the initialization. I got an error like this. [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(initConnection, responseCode: 3, , null)

github-actions[bot] commented 1 year ago

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.

robertocsd commented 1 year ago

anyone found a solution for this?