<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/AccessoryNotification/Identifier-swift.struct/init(notificationIdentifier:sourceIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accessory Notifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications0A12NotificationV10IdentifierV012notificationD006sourceD0AESS_SStcfc"
  },
  "title" : "init(notificationIdentifier:sourceIdentifier:)"
}
-->

# init(notificationIdentifier:sourceIdentifier:)

Initializes a notification identifier from its components.

```
init(notificationIdentifier: String, sourceIdentifier: String)
```

## Parameters

`notificationIdentifier`

An identifier that the source app sets for the notification.

`sourceIdentifier`

The bundle identifier of the app that sent the notification.

---

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)