Local Notifications
Methods
-
<static> add(options, scb, ecb)
-
Schedule a local notification
Parameters:
Name Type Description optionsObject notification options Properties
Name Type Description titlestring notification title alertstring notification alert dateDate date at which notification needs to be triggered badgeNumber application icon will be badged by this number when notification is triggered soundstring set it to 'SYSTEM_DEFAULT' to play the default system sound upon a notification vibrationstring set it to 'SYSTEM_DEFAULT' for default system vibration upon a notification payloadObject custom payload to be sent via notification scbsuccessCallback success callback ecberrorCallback error callback -
<static> cancel(notificationId, scb, ecb)
-
Cancel a scheduled local notification
Parameters:
Name Type Description notificationIdstring id of the scheduled notification that needs to be cancelled scbsuccessCallback success callback ecberrorCallback error callback