<!--
{
  "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/unavailable",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Background Tasks"
    ],
    "preciseIdentifier" : "s:SC24BGTaskSchedulerErrorCodeLeV11unavailableSoAAVvpZ"
  },
  "title" : "unavailable"
}
-->

# unavailable

A task scheduling error that indicates the app or extension can’t schedule background work.

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

## Discussion

This error usually occurs for one of three reasons:

- A person disabled background refresh in settings.
- The app runs on Simulator which doesn’t support background processing.
- The extension either didn’t set <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSExtension/NSExtensionAttributes/RequestsOpenAccess> to `YES` 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), or a person didn’t grant open access.

---

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)