<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNError/notificationsNotAllowed",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "s:SC11UNErrorCodeLeV23notificationsNotAllowedSoAAVvpZ"
  },
  "title" : "notificationsNotAllowed"
}
-->

# notificationsNotAllowed

Notifications are not allowed.

```
static var notificationsNotAllowed: UNError.Code { get }
```

## Discussion

This error occurs when you try to submit a notification request and your app or app extension is not authorized to schedule notifications.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)