Skip to content

Commit 9e9ee7b

Browse files
authored
Add 'icon' to '/messaging-types' (firebase#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'
1 parent e2a90bf commit 9e9ee7b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/lovely-swans-shake.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/messaging': minor
3+
---
4+
5+
Expose 'icon' field from the Firebase Messaging SDK as part of the 'notification' payload

packages/messaging-types/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface NotificationPayload {
3131
title?: string;
3232
body?: string;
3333
image?: string;
34+
icon?: string;
3435
}
3536

3637
export interface FcmOptions {

0 commit comments

Comments
 (0)