---
title: identifier
framework: backgroundtasks
role: symbol
role_heading: Instance Property
path: backgroundtasks/bgtask/identifier
---

# identifier

The string identifier of the task.

## Declaration

```swift
var identifier: String { get }
```

## Discussion

Discussion The identifier is the same as the one used to register the launch handler in register(forTaskWithIdentifier:using:launchHandler:).
