Skip to content

Titanium.Network.PushNotificationConfig

Simple object for specifying push notification options to registerForPushNotifications.

Properties #

callback#

Type: Callback<PushNotificationData>

Callback function invoked upon receiving a new push notification.

error#

Type: Callback<PushNotificationErrorArg>

Callback function called when an error occurs during registration.

success#

Type: Callback<PushNotificationSuccessArg>

Callback function called when the push registration is successfully completed.

types#

Type: Array<Number>

Array of NOTIFICATION_TYPE constants that the application would like to receive.

Setting the types property with the Titanium.Network.registerForPushNotifications method has no effect.

Use the Titanium.App.iOS.registerUserNotificationSettings method to register the notification types to receive.

Titanium SDK Documentation