Questions tagged [push-api]

The Web Push API lets users of your Web app receive push notifications at any time—even in the background; that is, even when your Web app is not currently running in the foreground on the user’s device (or even when the browser on the user’s device is not currently running). It use Service Workers to handle messages sent using common push services, and to allow your Web app to react to the push notifications it receives.

For more information about the Web Push API, see the actual Push API spec and the articles Using the Push API and Push Notifications on the Open Web. The MDN article Using Service Workers is also relevant.

The IETF standards that describe the Web Push protocol and its message encryption scheme are really useful to understand how to build an application server that sends push notifications to clients and how to encrypt push message payloads.

117 questions
2
votes
2 answers

How is the Push API's push service URL set?

The Push API defines a push service as a system that allows application servers to send push messages to a webapp. A subscription to the service is created via a call to serviceWorkerRegistration .pushManager.subscribe() without any…
Noah Freitas
  • 17,240
  • 10
  • 50
  • 67
2
votes
2 answers

Push Notifications Chrome (register and wait notifications)

Following this tutorial I am trying to register my chrome browser to the GCM but I can't subscribe the browser: I am trying to do the same as the following examples without the button. Once you accept the permision request, I want to get the…
1
vote
1 answer

Push API endpoints from Push Services with complete overview

On Mozilla's PushSubscription.endpoint page, they have listed all browser compatibilities. However, they do not state which Push Services are being used by each one of them. I figured, I might as well download each browser and test them all out by…
user20291437
  • 99
  • 1
  • 8
1
vote
0 answers

Push event and window.open, open only one window

I have a website with a serviceWorker push event, and then a postMessage which sends back data. When this data is received, I open a window using window.open, but if I have like 3 tabs opened, the window is opened 3 times. I put a specific name in…
Agnes D
  • 431
  • 2
  • 12
1
vote
0 answers

Send Firebase data messages without requesting permission on Flutter Web?

Is there any way to send "data messages", i.e. messages that don't trigger a notification, using Firebase on Flutter Web? The reason I want to do this is that I am developing an app intended to be run in a custom desktop program with a…
Magnus
  • 17,157
  • 19
  • 104
  • 189
1
vote
0 answers

Push-API still not supported in Safari 16 (Technology Preview)?

We want to test if our implementation of web-push notifications will run in Safari 16 as well. So we downloaded the "Safari Technology Preview" 148 from https://developer.apple.com/safari/resources/ to test our implementation of Web-Pushs on macOS…
Werner
  • 1,695
  • 3
  • 21
  • 42
1
vote
0 answers

Is it possible to rescind a web push notification

In the scenario that a push service sends push messages to multiple user agents and they all call showNotificafion. After one user agent acknowledges the notification is it possible to close the shown notification on all other user agents?
david_adler
  • 9,690
  • 6
  • 57
  • 97
1
vote
1 answer

How to implement desktop push notifications in an Angular 7 web application supporting Safari?

I implemented this feature using Firebase Cloud Messaging. But it is not working in Safari since it lack Push API support ( which the FCM is built upon). Have somebody implemented it in a proper manner to support all 3 major browsers?
1
vote
1 answer

Payload on client is null after sending notification via web-push-php

I am using web-push-php library by Minishlink (https://github.com/web-push-libs/web-push-php) to send push notifications to users. Push notification successfully arrives at the client but the payload is always null. Here's my…
1
vote
2 answers

Is push support in Service Workers dependent on Internet and third-party Google/Apple services?

Is push support in Service Workers dependant on Firebase (and Apple's equivalent)? All the tutorials I find have a step where you register a Firebase account, but for our webapp this is a no-go as it will be used at premises without internet access.…
oligofren
  • 20,744
  • 16
  • 93
  • 180
1
vote
0 answers

How can I send messages to a Chrome extension from localhost?

Chrome apps are gone, so no chrome.sockets.tcpServer. chrome.gcm is gone, and Firebase is way too heavy for my interests (not that I ever used chrome.gcm). I just want to send messages from localhost; I don't want to register anything or maintain an…
John Freeman
  • 2,552
  • 1
  • 27
  • 34
1
vote
0 answers

What options are there for a push server in order to send notifications to a service worker

I'm building a web app that has a service worker, which displays a notification when a message is sent. I've been using the Web Push API example (https://web-push-codelab.glitch.me/) as it's backend. But I'm not clear on how notifications are sent…
1
vote
1 answer

Custom subscribe button

I would like to customize the subscribe button and add it to my website, how can I do that? Currently users can subscribe to push notifications using this link: https://pushpad.xyz/p/3898
wps
  • 21
  • 6
1
vote
1 answer

Push WebAPI + IndexedDB + ServiceWorker

I've implemented the Push WebAPI in my web application using Service Worker as many articles explain on the web. Now I need to store some data inside IndexedDB to make them available while the web app is closed (chrome tab closed, service worker in…
Androidian
  • 1,035
  • 1
  • 16
  • 40
1
vote
1 answer

Subscribe user with pushPad Express to a custom Tag

I'm ussing pushpad Express to create a custom notification centre for a webapp, Subscribe is working fine with Uids, but I can't make it work with tags filtering. I check the documentation but I can't find the correct parameter name for this. I…