hyochan / flutter_inapp_purchase

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

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

Closed awaitANTHONY closed 6 months ago

awaitANTHONY commented 1 year ago

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

berkaycelebi commented 1 year ago

This issue may be because of using a device not have Google Play Services,

Some emulators don't have Google Play Services

Are you sure you are not in a emulator without play services?

giridat commented 1 year ago

I can confirm this issue is occurring on an actual device as well, I tried adding a delay as well but that didn't help much either, this issue is happening on the first try but thereafter it seems to be working.

EDIT: I found that my init had been calling the getpurchaseHistory method before the plugin was initialized, edited that, and now there's no issue.

lastant commented 1 year ago

For me this issue happened only in the debug mode. In the release mode it worked fine.

github-actions[bot] commented 9 months 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.

github-actions[bot] commented 6 months 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.