installHealthConnect method

Future<void> installHealthConnect()

Prompt the user to install the Health Connect app via the installed store (most likely Play Store).

Android only.

Implementation

Future<void> installHealthConnect() async {
  try {
    if (!Platform.isAndroid) {
      throw UnsupportedError(
          'installHealthConnect is only available on Android');
    }
    await _channel.invokeMethod('installHealthConnect');
  } catch (e) {
    debugPrint('$runtimeType - Exception in installHealthConnect(): $e');
  }
}