chargebee / chargebee-flutter

MIT License
5 stars 8 forks source link

App Crash with IllegalStateException: Reply already submitted #15

Closed sarankumar-ns closed 1 year ago

sarankumar-ns commented 2 years ago

App Crashes when canceling / closing Play Billing Bottom Sheet 2 or more times.

Caused by: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(24752):    at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:432)
E/AndroidRuntime(24752):    at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:266)
E/AndroidRuntime(24752):    at com.chargebee.flutter.sdk.ChargebeeFlutterSdkPlugin$purchaseProduct$1$onSuccess$1.onError(ChargebeeFlutterSdkPlugin.kt:133)
E/AndroidRuntime(24752):    at com.chargebee.android.billingservice.BillingClientManager.onPurchasesUpdated(BillingClientManager.kt:226)
E/AndroidRuntime(24752):    at com.android.billingclient.api.zzg.onReceive(com.android.billingclient:billing@@4.0.0:3)
E/AndroidRuntime(24752):    at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1666)
E/AndroidRuntime(24752):    ... 8 more