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 (_platformType == PlatformType.IOS) {
throw UnsupportedError(
'Revoke permissions is not supported on iOS. Please revoke permissions manually in the settings.');
}
await _channel.invokeMethod('revokePermissions');
return;
} catch (e) {
print(e);
}
}