Skip to main content
Solved

Flutter: Reply already submitted

  • Sep 23, 2021 7:21 PM UTC
  • 2 replies
  • 3199 views

Forum|alt.badge.img+4

Anyone had this crash?

 

Fatal Exception: java.lang.IllegalStateException: Reply already submitted
       at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:164)
       at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:238)
       at com.revenuecat.purchases_flutter.PurchasesFlutterPlugin$5.onReceived(PurchasesFlutterPlugin.java:584)
       at com.revenuecat.purchases.hybridcommon.CommonKt$restoreTransactions$2.invoke(common.kt:187)
       at com.revenuecat.purchases.hybridcommon.CommonKt$restoreTransactions$2.invoke(common.kt)
       at com.revenuecat.purchases.ListenerConversionsKt$receivePurchaserInfoListener$1.onReceived(listenerConversions.kt:127)
       at com.revenuecat.purchases.Purchases$retrievePurchaseInfo$1.invoke(Purchases.kt:846)
       at com.revenuecat.purchases.Purchases$retrievePurchaseInfo$1.invoke(Purchases.kt:98)
       at com.revenuecat.purchases.PurchasesKt$sam$java_lang_Runnable$0.run(Purchases.kt)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:7325)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Best answer by Maddie

Hey @Meu Cronograma Capilar, we have some updates on the GitHub issue if you’re interested! 

TLDR -- there is a bug in Google’s BillingClient that results in the listener being called twice. We’ve filed an issue with them and are working on a patch in the meantime. Feel free to follow the GitHub issue for further updates! 

View original
This post has been closed for comments

2 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Sep 24, 2021 10:17 PM UTC

Thanks for the crash report! Did you open this related GitHub issue for this crash? Our mobile engineers are looking into it and it would be helpful to know if you opened that issue. Mentioning @Maddie to keep her in the loop.


Forum|alt.badge.img+3
  • Contributor
  • Answer
  • Oct 1, 2021 6:08 PM UTC

Hey @Meu Cronograma Capilar, we have some updates on the GitHub issue if you’re interested! 

TLDR -- there is a bug in Google’s BillingClient that results in the listener being called twice. We’ve filed an issue with them and are working on a patch in the meantime. Feel free to follow the GitHub issue for further updates!