fit-samples icon indicating copy to clipboard operation
fit-samples copied to clipboard

Failing to recreate GoogleApiClient after upgrading play services 9.0.2

Open codingjeremy opened this issue 6 years ago • 0 comments

Issue by vitovalov Thursday Jul 28, 2016 at 11:22 GMT Originally opened as https://github.com/googlesamples/android-fit/issues/18


I made a fork from android-fit google's github project and added a couple of commits.

The problem comes with play-services-fitness version upgrade. It works as expected in 8.4.0 but if you upgrade to 9.0.2 appears the issue of recreating googleApiClient.

I'm trying to solve the case when the googleApiClient has to be recreated because stopAutoManage has been automatically called due to some error (either user canceled the sign-in dialog, or other client was alive but was manually stopAutomanage called). See the gifs.

So to sum up, the question is how to properly recreate the GoogleApiClient with play services 9+?

There's also an issue in android bug tracker.

codingjeremy avatar Sep 10 '19 20:09 codingjeremy