Skip to content

Geolocator.checkPermission() not return LocationPermission.deniedForever #1087

@KirillArtemenko

Description

@KirillArtemenko

🐛 Bug Report

After deny location request.

final checkPermission =  await Geolocator.checkPermission();
// checkPermission == LocationPermission.denied

final requestPermission = await Geolocator.requestPermission();
// requestPermission == LocationPermission.deniedForever

checkPermission != requestPermission

Expected behavior
Method checkPermission must return LocationPermission.deniedForever.
The order and numbers of method calls does not affect the result.

Steps To Reproduce

  1. Request permissions
  2. Deny (once or twice on android)
  3. Run this methods
  4. See different PermissionStatus from methods

Tested on:

  • iOS, Version 15.5 real device
  • Android, Pixel 4a (last Android version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions