From 9e9ee7ba3383237e0b92ad8183dd0f12640f4f3a Mon Sep 17 00:00:00 2001 From: Kai Wu Date: Tue, 1 Nov 2022 14:18:17 -0700 Subject: [PATCH] Add 'icon' to '/messaging-types' (#6728) * Expose 'icon' field from the Firebase Messaging SDK as part of the 'notification' payload. Fixes for b/241885017 * Update API reports * Update lovely-swans-shake.md * Ran Format.ts * Supplement 'icon' field to '/messaging-types' --- .changeset/lovely-swans-shake.md | 5 +++++ packages/messaging-types/index.d.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/lovely-swans-shake.md diff --git a/.changeset/lovely-swans-shake.md b/.changeset/lovely-swans-shake.md new file mode 100644 index 00000000000..d8ec5595685 --- /dev/null +++ b/.changeset/lovely-swans-shake.md @@ -0,0 +1,5 @@ +--- +'@firebase/messaging': minor +--- + +Expose 'icon' field from the Firebase Messaging SDK as part of the 'notification' payload diff --git a/packages/messaging-types/index.d.ts b/packages/messaging-types/index.d.ts index c1a30985842..2e68df670f7 100644 --- a/packages/messaging-types/index.d.ts +++ b/packages/messaging-types/index.d.ts @@ -31,6 +31,7 @@ export interface NotificationPayload { title?: string; body?: string; image?: string; + icon?: string; } export interface FcmOptions {