From f6584d24cb7d0dd9ecb94994b6051197d389600d Mon Sep 17 00:00:00 2001 From: Josh Carter <116527022+acrobid@users.noreply.github.com> Date: Mon, 7 Apr 2025 14:09:55 +0900 Subject: [PATCH] feat: add web_push field to messaging webpush options to allow for Declarative Web Push messages See https://pr-preview.s3.amazonaws.com/w3c/push-api/pull/385.html#declarative-push-message --- src/messaging/messaging-api.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/messaging/messaging-api.ts b/src/messaging/messaging-api.ts index 69c16382d5..601f7b8afb 100644 --- a/src/messaging/messaging-api.ts +++ b/src/messaging/messaging-api.ts @@ -108,6 +108,13 @@ export interface WebpushConfig { * Options for features provided by the FCM SDK for Web. */ fcmOptions?: WebpushFcmOptions; + + /** + * Support for Declarative Web Push + * https://pr-preview.s3.amazonaws.com/w3c/push-api/pull/385.html#declarative-push-message + */ + web_push?: number, + } /** Represents options for features provided by the FCM SDK for Web