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
4
votes
0 answers

Web/Push Notifications and Accessibility

I would like to know if there is any information or support available regarding Accessibility features with respect to Web Notifications on Chrome and Firefox browsers. We are trying to implement Web Notifications using the Notifications API…
Tanik
  • 41
  • 1
4
votes
1 answer

Can I Send a Web Notification on a Specific Time?

I am trying to implement notifications that do not need the interaction of the backend to be shown. The use of this is to put a remind me button, that would send a notification on certain time of the day (that the user specified). I am pretty new to…
4
votes
1 answer

Server worker being registered twice

I'm using FCM web notification service, when I am calling the register function: if ('serviceWorker' in navigator) { window.addEventListener('load', function() { navigator.serviceWorker.register('/sw.js').then(function(registration)…
4
votes
1 answer

Activate browser tab using HTML5 Notification

I'm using the HTML5 Notification API to show a message if new content is available. I'd like to show the browser tab that caused the notification to be activated when the user clicks the message, but I haven't been able to find an API to do so. I…
Jorn
  • 20,612
  • 18
  • 79
  • 126
3
votes
1 answer

Cancel sent Web Push notifications

I'm sending push notifications to my website users when they (for example) receive a private message. That notification goes to all browsers subscribed for that user. So could be desktop, mobile, work computer etc. What I would like to do is close…
Matt Deemer
  • 133
  • 1
  • 3
  • 9
3
votes
0 answers

Refreshing the FCM token and Un-subscribing from web notifications using javascript or jquery

I am sending notification to my web application from FCM. It is working fine. Now I have to do following two things : I have to refresh the token each time when user visit to the portal How user can un-subscribe from notification I have to do the…
3
votes
1 answer

Web Notifications custom implementation vs third-party services

I need to implement web notifications for some website and send notifications from php script executed in console. I found that is possible to implement web notifications without using third-party services, by using this lib…
Ivan M
  • 330
  • 2
  • 9
3
votes
0 answers

How to correctly check for permission for Push Notifications?

From what I've observed, Notification.permission and navigator.permissions.query({name:'push', userVisibleOnly:true}) both can be used to obtain the permission status for sending push notifications (Notification.permission is permission for showing…
3
votes
0 answers

Fcm Web Notifications issue in Firefox

I am trying to enable push notifications for a website using firebase. I am able to get it working perfectly in Google Chrome and Opera broswers. But I get the following error in mozilla firefox. Unable to get permission to notify. Object { code:…
3
votes
0 answers

FCM has two active tokens for the same Javascript client

I'm using the Firebase Javascript SDK to add web push notifications to a React JS app. Through some sequence of events, we've wound up with two FCM tokens that appear to be from the same web client (same machine, browser and site domain). An FCM…
3
votes
1 answer

close chrome notification on click

I'm trying to create web notifications via chrome and I'm receiving the notification and it's working fine the problem is when I'm clicking on the notification it is not disappearing please help me in closing notification when clicked/opened I…
3
votes
1 answer

Register inline service worker in web app

I'm toying with adding web push notifications to a web app hosted with apps script. To do so, I need to register a service worker and I ran into an error with a cross-domain request. Raw content is hosted from *.googleusercontent.com while the…
Brian
  • 4,274
  • 2
  • 27
  • 55
3
votes
1 answer

OneSignal delete notification

I was trying to use the REST API to cancel a pending notification that I sent to a single user also using the API (with include_player_ids and a single recipient), however I can not do this without passing the REST API KEY, which should not happen,…
João Gabriel
  • 41
  • 1
  • 7
3
votes
1 answer

Chrome 59 Incognito session doesn't expose "Allow" for Notification content settings and defaults to "Blocked" when permission requested through API

Chrome Version 59.0.3071.109 (Official Build) (64-bit) (at least on OSX) behaves differently from 58 in that in an incognito session, a call to request permission through the browser Notification API does not show the user the permission request…
miir
  • 1,814
  • 1
  • 17
  • 25
3
votes
2 answers

Javascript Web Push: where can I get "auth" key?

I'm starting to use Web Push Notification; I don't know where I can find the auth key: var pushSubscription = { endpoint: '< Push Subscription URL >', keys: { p256dh: '< User Public Encryption Key >', auth: '< ???? User Auth Secret ????…
Ali Amini
  • 172
  • 2
  • 14
1 2
3
9 10