`onPurchasesUpdated` received broadcast twice in a normal billing flow
See original GitHub issueI noticed this issue starts to surface since two days ago. I am launching a normal billing flow with :
BillingFlowParams flowParams = BillingFlowParams.newBuilder().setSku(sku).setType(BillingClient.SkuType.INAPP).build();
billingClient.launchBillingFlow((Activity) context, flowParams);
When the billing flow is successful, we are notified through onPurchasesUpdated
twice. When I debugged, I found that BillingBroadcastReceiver received two broadcasts and they have the same content (resultCode and Purchase). Previously, onPurchasesUpdated is only notified once.
Updating to the latest library : com.android.billingclient:billing:1.0 doesn’t resolve this issue. From the server logs, it seems like more and more user are encountering this issue.
I would like to verify if this is a change in Google Play Service? Or some buggy behaviour which the team is resolving? Since updating the newly released library doesn’t resolve the issue, do you recommend having a workaround on the client side? Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:15 (3 by maintainers)
Top GitHub Comments
Apologies for the issues you are experiencing. Please file a ticket at https://issuetracker.google.com against component “Android Public Tracker > App Development > Google Play Billing Library”. Presently we are reserving Github for questions specifically about the samples so we can better serve you.
Any update about this issue?