Class

# Notification

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Parent class of specific <span class="title-ref">Notification</span> types.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                      | Type                                        | Read-Only | Shared |
|-------------------------------------------|---------------------------------------------|-----------|--------|
| `Badge<notification.badge>`               | `Integer</api/data_types/integer>`          | ✓         |        |
| `Body<notification.body>`                 | `String</api/data_types/string>`            | ✓         |        |
| `DeliveryDate<notification.deliverydate>` | `DateTime</api/data_types/datetime>`        | ✓         |        |
| `Handle<notification.handle>`             | `Ptr</api/data_types/additional_types/ptr>` | ✓         |        |
| `Identifier<notification.identifier>`     | `String</api/data_types/string>`            | ✓         |        |
| `Repeats<notification.repeats>`           | `Boolean</api/data_types/boolean>`          | ✓         |        |
| `Subtitle<notification.subtitle>`         | `String</api/data_types/string>`            | ✓         |        |
| `Thread<notification.thread>`             | `String</api/data_types/string>`            | ✓         |        |
| `Title<notification.title>`               | `String</api/data_types/string>`            | ✓         |        |
| `UserInfo<notification.userinfo>`         | `Dictionary</api/language/dictionary>`      | ✓         |        |

## Property descriptions

<div id="notification.badge">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Badge

**Badge** As `Integer</api/data_types/integer>`

> The number that appears on the app icon when the <span class="title-ref">Notification</span> is presented.
>
> This property is read-only.

<div id="notification.body">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Body

**Body** As `String</api/data_types/string>`

> The details of the <span class="title-ref">Notification</span> message.
>
> This information may not be shown if the device is locked and the user has hidden message details.
>
> This property is read-only.

<div id="notification.deliverydate">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.DeliveryDate

**DeliveryDate** As `DateTime</api/data_types/datetime>`

> When the <span class="title-ref">Notification</span> was delivered.
>
> This property is read-only.

<div id="notification.handle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Handle

**Handle** As `Ptr</api/data_types/additional_types/ptr>`

> A pointer to the <span class="title-ref">Notification</span> for use with declares.
>
> This property is read-only.

<div id="notification.identifier">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Identifier

**Identifier** As `String</api/data_types/string>`

> The UUID that uniquely identifies the <span class="title-ref">Notification</span>.
>
> The UUID is created when the <span class="title-ref">Notification</span> is created.
>
> This property is read-only.

<div id="notification.repeats">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Repeats

**Repeats** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the <span class="title-ref">Notification</span> will repeat.
>
> The shortest interval allowed is 60 seconds.
>
> This property is read-only.

<div id="notification.subtitle">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Subtitle

**Subtitle** As `String</api/data_types/string>`

> A secondary line of text that appears below the title of the <span class="title-ref">Notification</span> message.
>
> This information may not be shown if the device is locked and the user has hidden message details.
>
> This property is read-only.

<div id="notification.thread">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Thread

**Thread** As `String</api/data_types/string>`

> Identifies the thread to which the <span class="title-ref">Notification</span> belongs.
>
> Threads are a set of characters you create which allow notifications to be grouped together in the iOS notifications user interface.
>
> This property is read-only.

<div id="notification.title">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.Title

**Title** As `String</api/data_types/string>`

> The title of the <span class="title-ref">Notification</span> message.
>
> This property is read-only.

<div id="notification.userinfo">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Notification.UserInfo

**UserInfo** As `Dictionary</api/language/dictionary>`

> Information sent along with the <span class="title-ref">Notification</span>.
>
> The underlying data structure is `JSON</api/text/json/jsonitem>` format.
>
> This property is read-only.

## Notes

This class is not used directly. Its subclasses (`CalendarNotification</api/user_interface/notifications/calendarnotification>`, `LocationNotification</api/user_interface/notifications/locationnotification>`, `TimeIntervalNotification</api/user_interface/notifications/timeintervalnotification>`, and `RemoteNotification</api/user_interface/notifications/remotenotification>` are all used only with events when a <span class="title-ref">Notification</span> is received.

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | iOS    |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `NotificationContent</api/user_interface/notifications/notificationcontent>`, `CalendarNotification</api/user_interface/notifications/calendarnotification>`, `LocationNotification</api/user_interface/notifications/locationnotification>`, `TimeIntervalNotification</api/user_interface/notifications/timeintervalnotification>`, and `RemoteNotification</api/user_interface/notifications/remotenotification>` classes.

</div>
