navigator.mozNotification
The support for this property as been dropped in favor of the standard Notification
constructor.
Provides support for creating notification
objects, which are used to display desktop notification alerts to the user. Currently, these are only supported on Firefox Mobile and Firefox OS. See Displaying notifications for an example.
Method overview
notification createNotification(in DOMString title, in DOMString description, in DOMString iconURL Optional); |
Methods
createNotification()
Creates and returns a notification object that can be used to display the specified message with an optional URL.
notification createNotification(
in DOMString title,
in DOMString description,
in DOMString iconURL Optional
);
Parameters
title
- μλ¦Ό νμ΄ν.
description
- μλ¦Όμ νμν ν μ€νΈ.
iconURL
Optional- A URL identifying the image to display in the notification.
Return value
A new notification
object.
Permissions
manifest νμΌμ "desktop-notification" permission μ μΆκ° ν΄μΌ νλ€.
"permissions": {
"desktop-notification":{}
}