Skip to content
Titanium SDK
Version12.6.2

You are reading 12.6.2. See this page in 13.4.1.

UserNotificationDictionary

pseudoAndroidiPhoneiPadmacOSsince 7.3.0

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.

Properties 13

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

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

alertTitle

StringiOS 8.2+

Title of the notification.

badge

Number

Application badge value.

category

String

Category identifier of the notification.

date

Date

Date and time when the notification was configured to fire.

identifier

Stringsince 7.3.0

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 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

String

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

timezone

String

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

userInfo

UserInfoDictionary

Custom data object.

Compiled from Titanium/App/iOS/UserNotificationCenter.ymlEdit on GitHub