<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundTasks",
  "identifier" : "/documentation/BackgroundTasks/BGTaskScheduler/Error/notPermitted",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Background Tasks"
    ],
    "preciseIdentifier" : "s:SC24BGTaskSchedulerErrorCodeLeV12notPermittedSoAAVvpZ"
  },
  "title" : "notPermitted"
}
-->

# notPermitted

A task scheduling error that indicates the app isn’t permitted to launch the task.

```
static var notPermitted: BGTaskScheduler.Error.Code { get }
```

## Discussion

There are two causes for this error:

- The app didn’t set the appropriate mode in the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/UIBackgroundModes> array.
- The task identifier of the submitted task wasn’t in the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/BGTaskSchedulerPermittedIdentifiers> array in [The Info.plist File](https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/authoring_help/authoring_help_book.html#//apple_ref/doc/uid/TP30000903-CH206-SW22).

---

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)