I am using Google's In-app Billing. (version 2.2.0)
I start billing connection using below code in application class:
billingClient = BillingClient.newBuilder(Application.getInstance()).setListener(this).enablePendingPurchases().build()
billingClient.startConnection(this)
Billing service gets successfully connected using above code.
But I am observing an issue in market where onBillingServiceDisconnected() is getting called multiple times within a few seconds. As per our inhouse analytics, ~13% of our users have got 2 or more onBillingServiceDisconnected() calls within 5 seconds. As suggested by Google documentation, I try to reconnect the service inside onBillingServiceDisconnected() using billingClient.startConnection(this), after which service gets connected again, but then again it gets disconnected.
What could be the reason behind such frequent service disconnections for so many users?
Would it be leading to payment issues as well?