Local-Notification Example

Has permission?
notification.local.hasPermission()
Register permission
notification.local.registerPermission()
Schedule now
notification.local.add()
Schedule multiple
notification.local.add()
Schedule in 5 sec
notification.local.add([])
Schedule every min
notification.local.add()
Update
notification.local.update()
Cancel
notification.local.cancel()
Cancel multiple
notification.local.cancel([])
Cancel all
notification.local.cancelAll()
Cancel
notification.local.clear()
Cancel multiple
notification.local.clear([])
Cancel all
notification.local.clearAll()
All IDs
notification.local.getIds()
Scheduled IDs
notification.local.getScheduledIds()
Triggered IDs
notification.local.getTriggeredIds()
Exists?
notification.local.exists()
Scheduled?
notification.local.isScheduled()
Triggered?
notification.local.isTriggered()
All Notifications
notification.local.get()
Scheduled Notifications
notification.local.getScheduled()
Triggered Notifications
notification.local.getTriggered()
Change default title
notification.local.setDefaults()