firebase / firebase/firebase-admin-node

[FR] Messaging: Support for iOS 18.4 Declarative push messages

Abierto
#2,892 6 comentarios 4 reacciones 2 asignados Reclamado por @chong-shao Ver en GitHub
api: messaging type: feature request
Lenguaje dominante
TypeScript
Estrellas
1.7k
Forks
419
Merge medio
3 d 10 h
PR fusionados (30 d)
16

Descripción

Declarative push messages are a new feature in iOS 18.4 that allow push messages to web apps without service worker handling. This greatly improves the deliverability of background notifications for web apps on iOS.

This requires the addition of an extra top level field in the Message interface as described [here](https://pr-preview.s3.amazonaws.com/w3c/push-api/pull/385.html#declarative-push-message).

Please allow the optional "web_push" (integer) field to the Message interface to enable Declarative push messages.

Currently, when adding this field, I receive the following validation error:

Error: Failed to send notification: Invalid JSON payload received. Unknown name "web_push" at 'message.webpush': Cannot find field.

More information on this feature [here](https://webkit.org/blog/16535/meet-declarative-web-push/#how-to-use-declarative-web-push).

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.