requestPermissions method

  1. @override
Future<bool> requestPermissions()
override

Request permission to access health data specified in the samplingConfiguration.

Implementation

@override
Future<bool> requestPermissions() async {
  bool permission = await deviceManager.hasPermissions();
  if (!permission) await deviceManager.requestPermissions();
  return (await deviceManager.hasPermissions());
}