Skip to content

Titanium.App.iOS.UserNotificationDictionary

Dictionary of notification data used in the array of notifications when receiving pending or local notifications in Titanium.App.iOS.UserNotificationCenter.getPendingNotifications and Titanium.App.iOS.UserNotificationCenter.getDeliveredNotifications.

Since: 7.3.0

Properties #

alertAction#

Type: String

Alert button text ('Open', by default) or home text ('Press Home to unlock', by default)
type: String

alertBody#

Type: String

Alert message.

alertLaunchImage#

Type: String

Image displayed instead of Default.png when launching the application.

alertSubtitle#

Type: String

Subtitle of the notification.

alertTitle#

Type: String

Title of the notification.

badge#

Type: Number

Application badge value.

category#

Type: String

Category identifier of the notification.

date#

Type: Date

Date and time when the notification was configured to fire.

identifier#

Type: String

The notification identifier.

This property is required in iOS 10+ and will fallback to a generated
UUID-string if not set. It is recommended to manage the identifier
yourself, but you can also get the generated UUID by accessing via
the "userInfo.id" field for parity with older iOS versions.

region#

Type: Dictionary

Region of the notification.

The following keys are included:

  • latitude: The latitude of the region.
  • longitude: The longitude of the region.
  • radius: The radius of the region.
  • identifier: The identifier of the region.

sound#

Type: String

Path to the sound file configured to play when the notification was fired.

timezone#

Type: String

Timezone of the date when the notification was configured to fire.

userInfo#

Type: UserInfoDictionary

Custom data object.

Titanium SDK Documentation