PushNotificationIOS.presentLocalNotification()

static presentLocalNotification(details) Schedules the localNotification for immediate presentation. details is an object containing: alertBody : The message displayed in the notification alert. alertAction : The "action" displayed beneath an actionable notification. Defaults to "view"; soundName : The sound played when the notification is fired (optional). category : The category of this notification, required for actionable notifications (optional). userInfo : An optional object conta

PushNotificationIOS.checkPermissions()

static checkPermissions(callback) See what push permissions are currently enabled. callback will be invoked with a permissions object: alert :boolean badge :boolean sound :boolean

PushNotificationIOS.getApplicationIconBadgeNumber()

static getApplicationIconBadgeNumber(callback) Gets the current badge number for the app icon on the home screen

PushNotificationIOS.cancelLocalNotifications()

static cancelLocalNotifications(userInfo) Cancel local notifications. Optionally restricts the set of canceled notifications to those notifications whose userInfo fields match the corresponding fields in the userInfo argument.

PushNotificationIOS.abandonPermissions()

static abandonPermissions() Unregister for all remote notifications received via Apple Push Notification service. You should call this method in rare circumstances only, such as when a new version of the app removes support for all types of remote notifications. Users can temporarily prevent apps from receiving remote notifications through the Notifications section of the Settings app. Apps unregistered through this method can always re-register.

PushNotificationIOS.cancelAllLocalNotifications()

static cancelAllLocalNotifications() Cancels all scheduled localNotifications

PushNotificationIOS.addEventListener()

static addEventListener(type, handler) Attaches a listener to remote or local notification events while the app is running in the foreground or the background. Valid events are: notification : Fired when a remote notification is received. The handler will be invoked with an instance of PushNotificationIOS. localNotification : Fired when a local notification is received. The handler will be invoked with an instance of PushNotificationIOS. register: Fired when the user registers for remote

PushNotificationIOS#getSound()

getSound() Gets the sound string from the aps object

PushNotificationIOS#getData()

getData() Gets the data object on the notif

PushNotificationIOS#getMessage()

getMessage() An alias for getAlert to get the notification's main message string