Open timeshift-ted opened 1 year ago
thanks @timeshift-ted for sharing the logs here. As per the crash analytics logs, we could see the issue is while fetching the products from google store and unfortunately the app was unable to connect with google play billing service. Could you please add the test account of google play store and try again. Thanks.
And also, will try to replicate the same issue in our example app and update it.
Hi,
Can you please give me instructions on "add the test account of google play store"?
Ted Johnson Timeshift Media, Inc.
On Fri, Sep 8, 2023 at 3:35 AM Amutha C @.***> wrote:
thanks @timeshift-ted https://github.com/timeshift-ted for sharing the logs here. As per the crash analytics logs, we could see the issue is while fetching the products from google store and unfortunately the app was unable to connect with google play billing service. Could you please add the test account of google play store and try again. Thanks.
And also, will try to replicate the same issue in our example app and update it.
— Reply to this email directly, view it on GitHub https://github.com/chargebee/chargebee-flutter/issues/71#issuecomment-1711451574, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANUMDSQ2TZOTEWSGQGNCGY3XZLYFJANCNFSM6AAAAAA4PEDMDM . You are receiving this because you were mentioned.Message ID: @.***>
Hi @cb-amutha ,
we have 120 reports of the same error since going live 1 month ago. Also through Crashlytics.
What causes the failure to connect to Google Play services here?
We also have this issue, but it's unclear why. I have a suspicion it's caused by the new default proguard rules in combination with a perhaps swallowed error, but I have no proof.
Here are stacktraces:
This suggests missing proguard rules.
We're using chargebee_flutter: v0.2.1
.
Issue is also reproducible in v0.3.0... this is affecting our production users who can't do purchases, please fix this asap.
Here are reproduction steps:
Basically, closing the Play Store crashes the app if it's in the background. If it's in the foreground, nothing happens. ProGuard/no ProGuard makes no difference.
Thanks for the steps to reproduce @ciriousjoker We are looking into this and will update here about the progress.
@cb-haripriyan Any news?
We have identified the underlying case which was causing the multiple call backs. The Billing Library calls the listeners multiple times during disconnection/reconnection, which in turns causes multiple callbacks on Flutter. We are working on a method to avoid this.
@cb-haripriyan Any eta for this? This is severely affecting our users.
@ciriousjoker We are targeting this for early next week.
@cb-haripriyan Do you have an update on this?
This issue produces almost 300 crashes per week on Android
@ciriousjoker We are expecting to release a fix by utmost tomorrow. Apologies, we were delayed due to unforeseen circumstances.
@ciriousjoker @timeshift-ted This should be fixed in the version 0.4.1. Can you please check and confirm?
Will try out asap, we'll probably have meaningful crash reporting statistics by the end of next week.
@cb-haripriyan This doesn't seem to happen nearly as often anymore as this one, but apparently it still exists in v1.0.0-beta.2
.
Fatal Exception: java.lang.IllegalStateException: Reply already submitted
at lh.c$g.a(SourceFile:1)
at uh.k$a$a.b(SourceFile:1)
at h4.b.f(SourceFile:1)
at h4.b.g(SourceFile:1)
at h4.b.b(SourceFile:1)
at h4.b$i.onError(SourceFile:1)
at com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$2.invoke(SourceFile:2)
at com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$2.invoke(SourceFile:1)
at com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$3.invoke(SourceFile:2)
at com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$3.invoke(SourceFile:1)
at com.chargebee.android.billingservice.BillingClientManager$createBillingClientStateListener$1.onBillingServiceDisconnected(:15)
at c3.u.onServiceDisconnected(SourceFile:1)
at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:2226)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2241)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8501)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Perhaps this happens if a user signs into or out of the Play Store while the app is running?
@ciriousjoker Missed updating it here. The version v1.0.0-beta.4 includes the fix for this.
The fix solved the issue, this can probably be closed for now and reopened if it occurs again
Crashlytics is reporting this crash is happening regularly:
Fatal Exception: java.lang.IllegalStateException Reply already submitted io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:435) io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error (MethodChannel.java:268) com.chargebee.flutter.sdk.ChargebeeFlutterSdkPlugin.error (ChargebeeFlutterSdkPlugin.kt:530) com.chargebee.flutter.sdk.ChargebeeFlutterSdkPlugin.onError (ChargebeeFlutterSdkPlugin.kt:511) com.chargebee.flutter.sdk.ChargebeeFlutterSdkPlugin.access$onError (ChargebeeFlutterSdkPlugin.kt:26) com.chargebee.flutter.sdk.ChargebeeFlutterSdkPlugin$retrieveProducts$1.onError (ChargebeeFlutterSdkPlugin.kt:159) com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$2.invoke (BillingClientManager.kt:51) com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$2.invoke (BillingClientManager.kt:21) com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$3.invoke (BillingClientManager.kt:69) com.chargebee.android.billingservice.BillingClientManager$retrieveProducts$3.invoke (BillingClientManager.kt:21) com.chargebee.android.billingservice.BillingClientManager$createBillingClientStateListener$1.onBillingServiceDisconnected (BillingClientManager.kt:504) com.android.billingclient.api.zzaf.onServiceDisconnected (com.android.billingclient:billing@@4.0.0:4) android.app.LoadedApk$ServiceDispatcher.doDeath (LoadedApk.java:1967) android.app.LoadedApk$ServiceDispatcher$RunConnection.run (LoadedApk.java:1982) android.os.Handler.handleCallback (Handler.java:883) android.os.Handler.dispatchMessage (Handler.java:100) android.os.Looper.loop (Looper.java:214) android.app.ActivityThread.main (ActivityThread.java:7356) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:930)