Disconnecting from Google Fit revokes all granted OAuth permissions for your app and removes all recording subscriptions and sensor registrations made by your app. You should provide users with a Disconnect from Google Fit option in your app settings.
Disable Google Fit
To disable Google Fit, call the
ConfigClient.disableFit
method when users tap the Disconnect from Google Fit option in your app:
Fitness.getConfigClient(this, GoogleSignIn.getAccountForExtension(this, fitnessOptions)) .disableFit() .addOnSuccessListener { Log.i(TAG,"Disabled Google Fit") } .addOnFailureListener { e -> Log.w(TAG,"There was an error disabling Google Fit", e) }
See Get Started for more details.