revokePermissions method
Revokes permissions of all types.
Uses disableFit()
on Google Fit.
Not implemented on iOS as there is no way to programmatically remove access.
Implementation
Future<void> revokePermissions() async {
try {
if (Platform.isIOS) {
throw UnsupportedError(
'Revoke permissions is not supported on iOS. Please revoke permissions manually in the settings.');
}
await _channel.invokeMethod('revokePermissions');
return;
} catch (e) {
debugPrint('$runtimeType - Exception in revokePermissions(): $e');
}
}