flutter_inapp_purchase icon indicating copy to clipboard operation
flutter_inapp_purchase copied to clipboard

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

Open awaitANTHONY opened this issue 2 years ago • 4 comments

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

awaitANTHONY avatar Aug 15 '23 16:08 awaitANTHONY

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?

berkaycelebi avatar Sep 04 '23 07:09 berkaycelebi

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.

giridat avatar Sep 28 '23 14:09 giridat

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

lastant avatar Sep 28 '23 22:09 lastant

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 Jan 02 '24 01:01 github-actions[bot]

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 Apr 02 '24 01:04 github-actions[bot]