Hi I've fitness app I have to connect google fit and share my fitness app data to google fit and I've to give option to disconnect.
I'm disconnecting by using below code.
Fitness.getConfigClient(this, GoogleSignIn.getLastSignedInAccount(this)).disableFit();
Once I disable unable to reconnect. if try upload data to google fit I'm getting below error.
There was a problem reading the data. com.google.android.gms.common.api.ApiException: 4: The user must be signed in to make this API call.