Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

navigator.mozNotification

Mobile Only in Gecko 2.0
Available only in Firefox Mobile as of Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Deprecated Gecko 22 (Firefox 22 / Thunderbird 22 / SeaMonkey 2.19)
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

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":{}
}

See also

문서 태그 및 공헌자

 이 페이지의 공헌자: fscholz, junho85
 최종 변경: fscholz,