PushNotificationConfig

Simple object for specifying push notification options to registerForPushNotifications.

  • 0.8
  • 0.8
  • 0.8

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

PushNotificationConfig
callback : Callback<PushNotificationData>

Callback function invoked upon receiving a new push notification.

Callback function invoked upon receiving a new push notification.

PushNotificationConfig
error : Callback<PushNotificationErrorArg>

Callback function called when an error occurs during registration.

Callback function called when an error occurs during registration.

PushNotificationConfig
success : Callback<PushNotificationSuccessArg>

Callback function called when the push registration is successfully completed.

Callback function called when the push registration is successfully completed.

PushNotificationConfig
types : Number[]

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

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

For iOS 8 and later, setting the types property with the Titanium.Network.registerForPushNotifications method has no effect.

For devices running iOS 8 and later, use the Titanium.App.iOS.registerUserNotificationSettings method to register the notification types to receive.

This API can be assigned the following constants: