Creates and displays a notification.
Pass a notifications.NotificationOptions
to define the notification's content and behavior.
You can optionally provide an ID for the notification. If you omit the ID, an ID will be generated. You can use the ID to update
or clear
the notification.
This is an asynchronous function that returns a Promise
.
Warning: If you call notifications.create()
more than once in rapid succession, Firefox may end up not displaying any notification at all.