Skip to content

Rectified issues in comments for NotificationMessagePayload #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions src/messaging.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,17 @@ export namespace admin.messaging {
* for code samples and detailed documentation.
*/
interface NotificationMessagePayload {

/**
* Identifier used to replace existing notifications in the notification drawer.
*
* If not specified, each request creates a new notification.
*
* If specified and a notification with the same tag is already being shown,
* the new notification replaces the existing one in the notification drawer.
*
* **Platforms:** Android
*/
tag?: string;

/**
Expand Down Expand Up @@ -673,13 +684,11 @@ export namespace admin.messaging {
color?: string;

/**
* Identifier used to replace existing notifications in the notification drawer.
*
* If not specified, each request creates a new notification.
*
* If specified and a notification with the same tag is already being shown,
* the new notification replaces the existing one in the notification drawer.
*
* The sound to be played when the device receives a notification. Supports
* "default" for the default notification sound of the device or the filename of a
* sound resource bundled in the app.
* Sound files must reside in `/res/raw/`.
*
* **Platforms:** Android
*/
sound?: string;
Expand Down