Skip to content

Commit

Permalink
Add 'icon' to '/messaging-types' (#6728)
Browse files Browse the repository at this point in the history
* 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'
  • Loading branch information
zwu52 authored Nov 1, 2022
1 parent e2a90bf commit 9e9ee7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-swans-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@firebase/messaging': minor
---

Expose 'icon' field from the Firebase Messaging SDK as part of the 'notification' payload
1 change: 1 addition & 0 deletions packages/messaging-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface NotificationPayload {
title?: string;
body?: string;
image?: string;
icon?: string;
}

export interface FcmOptions {
Expand Down

0 comments on commit 9e9ee7b

Please sign in to comment.