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
8
votes
1 answer

Notifications across all browsers

Are there any sort of notification system that works with all major browsers? I know chrome has their Notification API, Safari has push notifications and IE has pinned sites but is there some more general way to show notifications? I did find…
Ph33ly
  • 663
  • 3
  • 13
  • 29
8
votes
2 answers

Resetting denied HTML notifications

I have a web app in which I am using HTML Notifications. It works fine if the user allows it for the first time and start using it, however if user blocks the notification the first time by clicking the block button and later on try to request…
firebolt_ash
  • 1,204
  • 4
  • 13
  • 21
7
votes
1 answer

how to implement flutter web local notification?

I'm wondering if I can implement local notification in flutter web? I saw that I can create local notification for mobile app Android or IOS but is it possible to use it for web app? or any other alternative to accomplish it?
7
votes
2 answers

click_action attribute for web push notification through FCM

My questions is some what similar to (question) but with some differences. I am using FCM Admin SDK, but still do not see an option to send the click_action attribute for Web Push notifications. I checked out…
7
votes
0 answers

Angular web notification is not coming on another devices

I am trying to put the web notifications to my site so that all of my clients will see my notification in browser, when I add any new item in my site. I chose angular-web-notification, I installed through Bower in my app and tested locally, it…
7
votes
2 answers

Delay an HTML5 notification?

I've been looking at the state of HTML notifications and service workers, and was wondering - is it possible to show a notification on a delay? Basically, I would like to be able to say "remind me in 30 minutes" (or whatever), then push a…
Alastair
  • 5,894
  • 7
  • 34
  • 61
7
votes
3 answers

Go to an already opened tab when a Chrome Notification is clicked

Javascript in a web page (not a Chrome app or extension) can create a Chrome desktop notification, and set an URL to be opened when the notification is clicked. var notification = new Notification('Notification title', { icon:…
7
votes
1 answer

Preventing multiple web notifications?

I'm using websocket to receive notifications from server side, when I got a notification, I show a desktop notification using the Web Notification API, the problem is, if I'm opening this page in multiple tabs, I'd receive multiple duplicated…
wong2
  • 34,358
  • 48
  • 134
  • 179
6
votes
2 answers

Web push notification not showing

I registered a service worker and am trying to test a web notification in the browser. Chrome (and Firefox) claim the service worker is successfully registered. On load of the React App, I've granted permission to receive notifications. In my…
6
votes
1 answer

Firebase web push notification not working messaging.onMessage

I have configured web push notifications to my PWA ionic 4 app. The web push notifications are working like a charm when the tab is switched i.e in background or other than my app. The issue is when the tab is active I get the push messaging inside…
5
votes
2 answers

How to send notifications from a service worker

I have a service worker that creates a Websocket to listen for notifications, and it works fine. My problem is that when I am trying to display the notification I can't. here is the code function displayNotification(title, body, tag, url, actions)…
Kale
  • 179
  • 1
  • 1
  • 12
5
votes
1 answer

What is the correct way to ask for a user's permission to enable web push notifications?

I currently learning about service workers, and in particular subscribing a user to push notifications. I've worked through the Web Push Notifications Guide and Adding Push Notifications to a Web App Code Lab that Google publishes - but I'm seeing…
5
votes
2 answers

Web Push notification in Rails 5

I am creating new application in rails 5. I want to use Web Push notifications. I haven't find any document that'll help me in web push notifications. Any help will be appreciable .Thanks in advance.
dArK kNiGhT
  • 151
  • 2
  • 12
5
votes
1 answer

Chrome web notifications without SSL (bypassing Service Worker)

So, is it possible to implement web notifications for Chrome without SSL certificate? I want to avoid installing SSL on my site and it would be cool if there was a way to send notifications without Service Worker.
4
votes
2 answers

Service Worker "notificationclick" not firing

The notification is showing fine, but when I click on it, or any of the actions, nothing happens. I see no logging, no error messages, but the notification does close (although it closes even when I comment out the event.notification.close()). I've…
gruppler
  • 666
  • 9
  • 14
1
2
3
9 10