Skip to content

[Bug]: Notification permission status always returns Denied but was granted in request #1497

@quanvm97

Description

@quanvm97

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Steps to reproduce

The issue only happened on iOS devices.

  1. The permission request dialog is shown, and the permission is allowed. (Verified on iOS device that the permission is granted.)
Image
  1. Calling Permission.notification.status or Permission.notification.request() both return Denied. The result is shown in the screenshot below.
Image

Expected results

Must be "Granted" status if the permission was allowed.

Actual results

Always returns Denied.

Code sample

Code sample
final permissionStatus = await Permission.notification.request();
// or use
final permissionStatus = await Permission.notification.status;

print("=============== $permissionStatus");

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

12.0.0+1 (also tried 12.0.1)

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.2, on macOS 15.6.1 24G90 darwin-arm64
    (Rosetta), locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.102.1)
[✓] Connected device (5 available)
    ! Error: Browsing on the local area network for Nauqhnim’s iPhone. Ensure
      the device is unlocked and attached with a cable or associated with the
      same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code
      -27)
[✓] Network resources

• No issues found!

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