Questions tagged [html5-notifications]

This W3C specification defines an API to let a web page send a notification to the user on the desktop or mobile device.

The W3C Web Notifications API allows JavaScript to display a notification outside the context of the page.

This is currently supported on Chrome, Firefox, OS X Safari, Opera, Blackberry Browser 10, Firefox for Android.

45 questions
0
votes
0 answers

Response code 401 while sending notification to Edge

I am creating a web app that sends notifications to my subscribers. While testing with different browsers, I noticed only the Edge browser got an authorized error and has a different endpoint than the rest of the browsers (Chrome, Opera)…
Doan Van Thang
  • 989
  • 1
  • 10
  • 21
0
votes
3 answers

Electron Notification not working on macOS (bonus mdn speech api)

I am trying to create notifications on macOs using the electron framework. I have cloned the open source Quickstart from GitHub and the only code in my renderer.js process is below: var myNotification = new Notification('Electron…
0
votes
1 answer

HTML5 Web Notification Permission Issue

I'm trying to implement HTML5 Notification API in my chat application. When I'm working on my localhost, everything works fine (The browser prompts me whether i need to allow notification from this site or not). But when i try to access my…
0
votes
1 answer

Html5 notification(load particular div element to notification body)

I'm try to use html5 notification,now i'm strggle to load html element into notifications body Below code I've tried let string = document.getElementById('map') let myNotification = new Notification('Incomming calls', { body:…
Robert
  • 3,373
  • 1
  • 18
  • 34
0
votes
0 answers

HTML5 Notifications Questions

I have some questions about HTML5 notifications: How do I replace the google chrome image on html5 notifications? I know I can do icon which adds an icon to the right hand side Can I change the domain it comes from to say the name of the site…
BCLtd
  • 1,459
  • 2
  • 18
  • 45
0
votes
0 answers

HTML Notification denied automatically

I am trying to set HTML desktop notifications using this: // Let's check if the browser supports notifications if (!("Notification" in window)) { alert("This browser does not support desktop notification"); } …
Ishan
  • 3,303
  • 5
  • 29
  • 47
0
votes
0 answers

how to change the notification bottom title in chrome extension

what key should I use in var notification = new Notification('hi', { icon: 'xxx.png', body: "click me", }) to override the bottom text on notification ?
joijo
  • 21
  • 5
0
votes
1 answer

Can an HTML5 notification fire from an inactive tab and play an audio alert?

Say, you want to play a beep.mp3 on the hour so you wrote JavaScript code that does this, which is not all that hard. But when the user switches to another tab, and your page soon becomes living in an inactive tab, you won't hear those audio alerts…
0
votes
3 answers

How can I open the tab, the notification came from?

I want to use HTML5 notifications: var n = new Notification("Hello"); How can I open the tab, the notification came from?
Michael
  • 32,527
  • 49
  • 210
  • 370
0
votes
1 answer

Alert user of in-browser event when window minimized -- other than html5 notification

I have a requirement where we need to alert the user of some event that happened in the browser even if the window is minimized. In browser we use toasts from toastr and this works great if the user is in the browser window already. We also have…
Pompey
  • 616
  • 2
  • 9
  • 23
0
votes
1 answer

Chrome Extension not detecting notification permission

I'm using the Chrome Extension Example Tutorial to build a simple extension to display a HTML5 desktop notification. The trouble I seem to be having is that although I have changed the manifest file to request notification permission (See Below)…
0
votes
0 answers

web notifications not working

I'm tring to use the web notifications API like in this example: http://www.inserthtml.com/2013/10/notification-api/?utm_source=html5weekly&utm_medium=email When i'm in this website, everything is working great, in the console i'm writing…
guyklainer
  • 99
  • 1
  • 9
0
votes
1 answer

Issue with HTML5 Notification and permission

I'm trying to use the new HTML notification API... I'm still stuck in the request authorization phase; when user click on a button it's executed the function: // this is all inside a click handler var fn =…
Bruno
  • 5,961
  • 6
  • 33
  • 52
0
votes
1 answer

Use image file on other server as Icon of webkitnotifications

I'm making a Chrome Extension. I want to use a image file on other servers as an icon of webkitnotifications(Desktop notifications) in Content Script window.webkitNotifications.createNotification( "http://www.example.com/icon48.png", "title",…
0
votes
1 answer

Unable to show Desktop Notifications using Google Chrome

I followed the instructions as given in Using The Notifications API. Also I faced many problems like the below, because I added the document.querySelector() inside the part: Uncaught TypeError: Cannot call method 'addEventListener' of…
1 2
3