dooboolab-community / flutter_inapp_purchase

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

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

Closed awaitANTHONY closed 4 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 11 months 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 11 months 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 11 months ago

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

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