hyochan/flutter_inapp_purchase

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

Closed this issue · 5 comments

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

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?

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.

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

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.

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.