Closed khaykov closed 1 year ago
This PR fixes some ANR's that result from billing service. Despite following Google's guidelines, we are getting ANR's when initializing billing service, so I moved some calls to background thread, and added a backoff logic.
Backoff logic:
release { debuggable true minifyEnabled true shrinkResources false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }
IapViewModel I Billing response OK
IapViewModel I Retrying billing service connection after 1000 MS delay
Afte this:
This PR fixes some ANR's that result from billing service. Despite following Google's guidelines, we are getting ANR's when initializing billing service, so I moved some calls to background thread, and added a backoff logic.
Backoff logic:
IapViewModel I Billing response OK
IapViewModel I Retrying billing service connection after 1000 MS delay
Afte this: