Confirmed users
964
edits
(Add link for mozilla push service docs, removed obsolete push server links.) |
(update) |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
= Overview = | = Overview = | ||
Push Notifications is a feature that enables web applications to efficiently notify users even when off-site. It's intended as a standards | Push Notifications is a feature that enables web applications to efficiently notify users even when off-site. It's intended as a standards based feature utilizing Push API, Notifications API, WebPush Service. | ||
Currently, email is the only reliable way for a web application to contact or notify users on desktop computers. Push Notifications introduces functionality for web applications to contact users when off-site ushering a new level of interactivity. There is a class of web sites where users don't often install mobile apps but do want a casual subscription to content. For example: | Currently, email is the only reliable way for a web application to contact or notify users on desktop computers. Push Notifications introduces functionality for web applications to contact users when off-site ushering a new level of interactivity. There is a class of web sites where users don't often install mobile apps but do want a casual subscription to content. For example: | ||
| Line 16: | Line 16: | ||
'''Plan of Record - approved 9/18''' | '''Plan of Record - approved 9/18''' | ||
Desktop: | Desktop: ON TRACK 2016/1/12 | ||
* Fx44: Ship a quality, basic user-centered experience using Desktop Push Notifications. | * Fx44: Ship a quality, basic user-centered experience using Desktop Push Notifications. | ||
Android: | Android: | ||
* | * Fx46: Land Push Notifications in Fx44 Nightly and evaluate user experience. (updated 10/15) | ||
Road Map: | Road Map: | ||
* | * Fx46+: Ship a great Desktop experience using Push Notifications. | ||
Currently in active development. Feature may change as decisions are made. | |||
== Technologies == | == Technologies == | ||
| Line 87: | Line 72: | ||
====Mobile==== | ====Mobile==== | ||
Mobile is targeting | Mobile is targeting Fx45+ to for initial support. Android and iOS will leverage Google Cloud Messaging (GCM) and Apple Push Notification Services (APNS) respectively. Work is done by three teams: Android eng, Android platform, and Services Dev. We will be gathering a list of dependencies on landing this on Android. | ||
Android Bug Tree: https://bugzilla.mozilla.org/showdependencytree.cgi?id=1206207&maxdepth=1&hide_resolved=1 | Android Bug Tree: https://bugzilla.mozilla.org/showdependencytree.cgi?id=1206207&maxdepth=1&hide_resolved=1 | ||
| Line 99: | Line 84: | ||
==FAQ== | ==FAQ== | ||
What are recent changes from Mozilla's SimplePush prototypes: | '''Does Firefox support encrypted data in Push messages?''' | ||
Firefox supports the draft spec IETF encryption spec: https://tools.ietf.org/html/draft-ietf-webpush-encryption-01 . Service Workers require HTTPS for it's transport protocol. | |||
'''How does Push Notifications compare to email when sites want to contact me?''' | |||
Sites must ask permission to send you a push notification and we've made it easy to disable from site or suppress any notifications until you restart. Web sites offering the push notification will have an anonymized endpoint in which they can send you push messages through Mozilla servers. | |||
'''How does Push Notifications affect my power usage''' | |||
Push can actually improve power efficiency for many users. Web site often create their own web sockets or polling request to their own servers to update their website. Multiply that for each web site. Push creates a single web socket for '''all''' sites using that service. So you may go from 10 sites connecting to the network to now only a single connection. | |||
You may also leave a tab open or sites may auto refresh at an interval. But with Push, you can close that tab and the site can notify you when you have new mail, message, or content. | |||
'''What have you changed in the notification UI in Firefox 44?''' | |||
We've added a gear/ellipsis icon that allows you to quickly suppress notifications, disable for site, and open notification manager. We've changed the on screen display time from four seconds on Windows and Linux to 12 seconds. We've fixed the accessibility announcement for screen readers and we're working on freshening up the UI. If you really want to disable the feature entirely you can go to about:config and change the dom.push.enable to false . | |||
'''What are recent changes from Mozilla's SimplePush prototypes:''' | |||
* Currently the Push API does not access data in the push message, it simply fires an event in the service worker. | * Currently the Push API does not access data in the push message, it simply fires an event in the service worker. | ||
| Line 107: | Line 114: | ||
* notification permissions cannot be requested inside a service worker, it must be in the web application. | * notification permissions cannot be requested inside a service worker, it must be in the web application. | ||
What's the difference between SimplePush and WebPush. | |||
'''What's the difference between SimplePush and WebPush.''' | |||
* They use different DOM APIs. | * They use different DOM APIs. | ||
| Line 120: | Line 128: | ||
=== Demos=== | === Demos=== | ||
Requires Firefox | Requires Firefox 44 or later | ||
* Fx, Chrome, Chrome Android: https://people.mozilla.org/~ewong2/push-notification-test/ | * Fx, Chrome, Chrome Android: https://people.mozilla.org/~ewong2/push-notification-test/ | ||
| Line 126: | Line 134: | ||
* Chrome only: https://simple-push-demo.appspot.com/ | * Chrome only: https://simple-push-demo.appspot.com/ | ||
* Web Notification test: https://people.mozilla.org/~mnoorenberghe/w3c_notifications.htm | * Web Notification test: https://people.mozilla.org/~mnoorenberghe/w3c_notifications.htm | ||
* WordPress Plugin: TBD | |||