requestEnableGooglePlayServices static method

Future<bool> requestEnableGooglePlayServices()

Android Only - Requests user to enable Google Play Services.

Implementation

static Future<bool> requestEnableGooglePlayServices() async {
  if (Platform.isAndroid) {
    final bool result = await _channel
        .invokeMethod(OkHiNativeMethod.requestEnableGooglePlayServices);
    return result;
  } else {
    throw OkHiException(
      code: OkHiException.unsupportedPlatformCode,
      message: OkHiException.unsupportedPlatformMessage,
    );
  }
}