---
title: "init(fromRemoteNotificationDictionary:)"
framework: cloudkit
role: symbol
role_heading: Initializer
path: "cloudkit/cknotification/init(fromremotenotificationdictionary:)"
---

# init(fromRemoteNotificationDictionary:)

Creates a new notification using the specified payload data.

## Declaration

```swift
convenience init?(fromRemoteNotificationDictionary notificationDictionary: [AnyHashable : Any])
```

## Parameters

- `notificationDictionary`: The push notification’s payload data. Use the dictionary that the system provides to your app delegate’s doc://com.apple.documentation/documentation/UIKit/UIApplicationDelegate/application(_:didReceiveRemoteNotification:fetchCompletionHandler:) method. This parameter must not be nil.
