---
title: unavailable
framework: backgroundtasks
role: symbol
role_heading: Type Property
path: backgroundtasks/bgtaskscheduler/error/unavailable
---

# unavailable

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

## Declaration

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

## Discussion

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 RequestsOpenAccess to YES in The Info.plist File, or a person didn’t grant open access.

## See Also

### Getting the error codes

- [BGTaskScheduler.Error.Code](backgroundtasks/bgtaskscheduler/error/code.md)
- [notPermitted](backgroundtasks/bgtaskscheduler/error/notpermitted.md)
- [tooManyPendingTaskRequests](backgroundtasks/bgtaskscheduler/error/toomanypendingtaskrequests.md)
