---
title: "init(notificationIdentifier:sourceIdentifier:)"
framework: accessorynotifications
role: symbol
role_heading: Initializer
path: "accessorynotifications/accessorynotification/identifier-swift.struct/init(notificationidentifier:sourceidentifier:)"
---

# init(notificationIdentifier:sourceIdentifier:)

Initializes a notification identifier from its components.

## Declaration

```swift
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.
