dooboolab-community / flutter_inapp_purchase

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

iOS flutter_inapp_purchase in ios geting error listen (FlutterInappPurchase.purchaseError) #486

Open anilthummar opened 2 months ago

anilthummar commented 2 months ago

@arisbartee @LinusU @emostar @nucleartux

Please help me for same.

Version of flutter_inapp_purchase

flutter_inapp_purchase: ^5.6.1

Platforms where the error occurred (iOS)

The error occurred on iOS only.

Expected behavior

Actual behavior

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

When initiating my payment process using the following code:

  1. await FlutterInappPurchase.instance.initialize();
  2. connectionSubscription = FlutterInappPurchase.connectionUpdated.listen((connected) { print("test") });
  3. purchaseUpdatedSubscription = FlutterInappPurchase.purchaseUpdated.listen((productItem) async) { print("test") });
  4. purchaseErrorSubscription = FlutterInappPurchase.purchaseError.listen((purchaseError) { print("test") });

I encounter an error at the 4th step. Every time the control reaches the 4th step, my payment process halts, but this issue occurs only on iOS.

KyawSoeW1n commented 2 months ago

Is it work on emulator?

anilthummar commented 2 months ago

@KyawSoeW1n not its not work on emulator , i have check and test in real iPhone device