Questions tagged [web-notifications]

The Web Notifications API provides a way for a web application to show a platform-level notification to a users — outside of a browser’s viewport and regardless of whether the web application that generated the notification is in the currently-active tab/window.

Web Notifications API for end-user notifications provides a way to alert users — outside the context of a web page — of an occurrence such as the delivery of an e-mail message.

https://notifications.spec.whatwg.org/

145 questions
2
votes
1 answer

AngularJS - share a websocket between tabs/windows

I am using angular-websocket to open a WebSocket, The application is waiting for a message and then displays a web notification. I noticed that when there is more than 1 tab open there are many connections and then every tab will receive a message…
2
votes
0 answers

Web Notification on Click event in Edge browser

Edge Web Notification Click event : code to bring the corresponding window on top is not working. The same is working for other browsers which supports Notification. Please share your comments. JavaScript code…
Jintu
  • 19
  • 3
2
votes
0 answers

Safari web notifications empty logging response

i'm literally going to lose my mind here. I'm trying to check the log messages sent to my /v1/log folder but the response is empty. So what i'm doing i'm printing the messages using print_r($_REQUEST, true) located in /v1/log/index.php Tried to…
Joe
  • 33
  • 5
2
votes
1 answer

Firebase Cloud Messaging - Change default Chrome icon for web notifications on Android

In firebase cloud messaging web notifications, the default icon is chrome icon shown as a grey circle how can i change it
Buddhi
  • 2,224
  • 5
  • 32
  • 43
2
votes
1 answer

Close angular-web-notification onclick

I'm using angular-web-notification (https://github.com/sagiegurari/angular-web-notification) and i've built a factory in order to avoid copy-pasting every time I want to display it. My factory is this module.registerFactory('browserNotification',…
MarBVI
  • 811
  • 2
  • 12
  • 34
2
votes
0 answers

Firefox push notification working in localhost but not from my website(https://example.com)

I am running the below which is working perfectly in my localhost but when i ran the same code from my site(https://**.co) the notification is not working.I dont receive any message Below is my sample code
2
votes
1 answer

Are Web Notifications Supported on Microsoft Edge Mobile?

Recently I heard that Microsoft Edge mobile supports Web Notifications after the Windows 10 Anniversary Update. So I tried the following code but it didn't work. if ( window.Notification && Notification.permission !== "denied" ) { …
Ayan
  • 2,738
  • 3
  • 35
  • 76
2
votes
2 answers

Any way to send push style web notifications to mobile devices?

I found this tutorial that claims that it can be done using a combination of the follow HTML5 APIs: Notifications API Service Workers API Push API Apparently all 3 are required for this to work but when I search them in caniuse it doesn't appear…
2
votes
1 answer

web push notification doesn't show if pc is off or sleeping

So I have finally implemented a successfull push notification for my website however when i push the notification and suppose the reciever's pc is off , or in sleep mode the gcm returns success but the notification is lost ,it never pops up for…
Aman Satija
  • 1,865
  • 2
  • 15
  • 16
2
votes
1 answer

service worker showNotification require interaction flag

the below code generates a notification which automatically goes away in 20 secs on chrome .. I don't get why this is happening ...!!! the document says that default timeout value of notification is 8 secs , then why it takes 20 secs to dismiss the…
Aman Satija
  • 1,865
  • 2
  • 15
  • 16
2
votes
1 answer

Does iOS9 support Web Notifications?

Does iOS 9 mobile Safari support the Web Notifications API? I can't find any sources pointing at new HTML5 features except for this one.
damian
  • 5,314
  • 5
  • 34
  • 63
2
votes
1 answer

Web/Desktop Notification API - force close all notifications upon refreshing the page

I've been looking at the Web Notification API or Desktop Notification API. I understand how it's constructed and the number of attributes and events that it supports. The notifications are meant to be separated from the browser sot that even if the…
2
votes
1 answer

Best way to display notifications in Opera v15 extension

I have a chrome extension that I adapted to the Opera. Fortunately, all the features of my chrome extension worked well in Opera 15 without many changes. However, my extension uses the webkitNotifications to notify the result of the context menu…
afazolo
  • 382
  • 2
  • 6
  • 22
1
vote
0 answers

onMessage listener not working when main.dart executes in push notifications flutter web

I want to integrate push notifications in flutter. My web whole code is as: my index.html code is as: Firebase Messaging Demo
Muhammad Umair Saqib
  • 1,287
  • 1
  • 9
  • 20