dooboolab-community / flutter_inapp_purchase

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

Unhandled Exception: PlatformException(InappPurchasePlugin, buyItemByType, null, null) #430

Closed virajtalaviya closed 1 year ago

virajtalaviya commented 1 year ago

Version of flutter_inapp_purchase

5.4.1

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

should show more details of the error

Actual behavior

showing this error while requesting purchase with no more specifications why it is coming up

Tested environment (Emulator? Real Device?)

Real device

SuperTizzyGod commented 1 year ago

image because inapp product detail:selectedProductDetails.subscriptionOfferDetails is null

mdusaama0 commented 1 year ago

Version of flutter_inapp_purchase

5.4.1

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

should show more details of the error

Actual behavior

showing this error while requesting purchase with no more specifications why it is coming up

Tested environment (Emulator? Real Device?)

Real device

Hey I got the same error. I solved it by these steps.

gkovac42 commented 1 year ago

It would be nice if this fix made it into the official release...

moodstubos commented 1 year ago

@virajtalaviya Why did you close this issue? It doesn't seem to be fixed yet.

@mdusaama0 Your workaround works well! Thank you. Is anyone able to make an pull request for this?

deakjahn commented 1 year ago

The PR was sent in April... https://github.com/dooboolab-community/flutter_inapp_purchase/pull/423