requireAlwaysAuth method

Future<void> requireAlwaysAuth()

请求后台定位 *仅iOS

Implementation

Future<void> requireAlwaysAuth() {
  return platform(
    android: (pool) async {},
    ios: (pool) async {
      final onRequireAuth = (CLLocationManager manager) async {
        await manager?.requestAlwaysAuthorization();
      };
      await _iosController.set_delegate(
        _iosMapDelegate.._onRequireAlwaysAuth = onRequireAuth,
      );
    },
  );
}