requestTemporaryFullAccuracy static method

Future<LocationAccuracyStatus> requestTemporaryFullAccuracy({
  1. required String purposeKey,
})

Requests temporary precise location when the user only gave permission for approximate location (iOS 14+ only)

When using this method, the value of the required property purposeKey should match the

Throws a PermissionDefinitionsNotFoundException when the necessary key in the Info.plist is not added Returns LocationAccuracyStatus.precise when using iOS 13 or below or using other platforms.

Implementation

static Future<LocationAccuracyStatus> requestTemporaryFullAccuracy({
  required String purposeKey,
}) =>
    GeolocatorPlatform.instance.requestTemporaryFullAccuracy(
      purposeKey: purposeKey,
    );