shouldShowRequestPermissionRationale method

Future<bool> shouldShowRequestPermissionRationale()

Should show request permission rationale for background location. Only for Android. iOS will always return false.

On Android 11 or higher, If your App hasn't been granted background location, and shouldShowRequestPermissionRationale returns false, you should show an educational UI to the user explaining why your App needs background location access.

Note: The Plugin provide a default rationale UI which is BackgroundPermissionRationale when call requestPermission with a not null rationale parameter. If you show your own rationale UI, don't set this parameter

Implementation

Future<bool> shouldShowRequestPermissionRationale() {
  throw UnimplementedError(
      'shouldShowRequestPermissionRationale() has not been implemented.');
}