<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSBackgroundActivityScheduler/identifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBackgroundActivityScheduler(py)identifier"
  },
  "title" : "identifier"
}
-->

# identifier

A unique reverse DNS notation string, such as `com.example.MyApp.updatecheck`, that identifies the activity.

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

## Discussion

This string should remain constant for an activity across launches of your app because the system uses this unique identifier to track the number of times the activity has run and to improve the heuristics for deciding when to run it again in the future. `nil` and zero-length strings are not allowed. See [`Configure Scheduler Properties`](/documentation/Foundation/NSBackgroundActivityScheduler#Configure-Scheduler-Properties).

## See Also

[`-  initWithIdentifier:`](/documentation/Foundation/NSBackgroundActivityScheduler/init(identifier:))

Initializes a background activity scheduler object with a specified unique identifier.



---

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)