Skip to content

[Bug]: .request returns permanently denied, but status only denied #1393

Open
@blingkonnerth

Description

@blingkonnerth

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Steps to reproduce

Add any kind of permission, e.g. Permission.notification and deny the native popup.

When checking the status, there are two way:

  1. await Permission.notification.status
  2. await Permission.notification.request()

Expected results

I expect to get the same status for both variants.

Actual results

But:

  1. status -> .denied
  2. request -> permanentlyDenied

The 2nd is what I actually need, because otherwise I don't know if the native request was done before.

I couldn't find anything about this, but it seems a quite important missing feature/bug, at least for me.

Code sample

Code sample
[Paste your code here]

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

11.3.0

Flutter Doctor output

Doctor output
[Paste your output here]

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