Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
desktop notifications in firefox
What is the best way to emulate Chrome's desktop notification API in Firefox (if there is a way)? I would like to notify the user of something the moment they navigate away from the relevant page, so I can't use a notification that lives in the page. It has to exist at the level of the browser or the background page.
-
EMPLOYEE
1Hello MJ.
For now as it seems Firefox does not support Chrome Like HTML5 notifications.
See Firefox HTML5 support here:
http://caniuse.com/#search=notifications
What I do think that's possible here is catch the onbeforeload event of the page and once you get it save the URL in a appAPI.db key. In the next page load you can read this key and if it exists, show the message and then delete this key.
Obviously if you need the notification to be shown immediately then the above solution is not what you are looking for.
In any case HTML5 notifications is something we are really keen about and will support it once available for the major browsers. -
-
-
Loading Profile...




