<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CloudKitJS",
  "identifier" : "/documentation/CloudKitJS/CloudKit.NotificationInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CloudKit JS"
    ],
    "preciseIdentifier" : "struct/CloudKit.NotificationInfo"
  },
  "title" : "CloudKit.NotificationInfo"
}
-->

# CloudKit.NotificationInfo

Information about a notification.

```
dictionary CloudKit.NotificationInfo {
	String alertBody;
	String alertLocalizationKey;
	String[] alertLocalizationArgs;
	String alertActionLocalizationKey;
	String alertLaunchImage;
	String soundName;
	Boolean shouldBadge;
	Boolean shouldSendContentAvailable;
	String[] additionalFields;
	String category;
};
```

## Overview

The `CloudKit.NotificationInfo` dictionary is the same as the dictionary described in [Notification Info Dictionary](https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/Types.html#//apple_ref/doc/uid/TP40015240-CH3-SW13) in [CloudKit Web Services Reference](https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitWebServicesReference/index.html#//apple_ref/doc/uid/TP40015240).

## Topics

### Instance Properties

[`attribute String[] additionalFields;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/additionalFields)

Fields the server sends along with this notification.

[`attribute String alertActionLocalizationKey;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/alertActionLocalizationKey)

A key to get a localized right button title that appears in the alert dialog.

[`attribute String alertBody;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/alertBody)

The text of the alert message.

[`attribute String alertLaunchImage;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/alertLaunchImage)

The filename of an image file in the app bundle used as a launch image.

[`attribute String[] alertLocalizationArgs;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/alertLocalizationArgs)

Array of strings to appear as variables if `alertLocalizationKey` is a format specifier.

[`attribute String alertLocalizationKey;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/alertLocalizationKey)

A key to a localized alert-message.

[`attribute String category;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/category)

The name of the action group corresponding to this notification.

[`attribute Boolean shouldBadge;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/shouldBadge)

A Boolean value indicating whether a badge should be displayed. If `true`, a badge is displayed; otherwise, it is not. The default value is `false`.

[`attribute Boolean shouldSendContentAvailable;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/shouldSendContentAvailable)

A Boolean value indicating whether new content is available. If `true`, new content is available; otherwise, it is not. The default value is `false`.

[`attribute String soundName;`](/documentation/CloudKitJS/CloudKit.NotificationInfo/soundName)

The name of a sound file in the app bundle to play as an alert.

---

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)