Skip to content

Commit

Permalink
docs: update README with JSON example for notifications
Browse files Browse the repository at this point in the history
- Add JSON example for sending notifications with analytics label in README.md

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jan 22, 2025
1 parent ee73d00 commit 6de1643
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,24 @@ Send normal notification.
}
```

Label associated with the message's analytics data.

```json
{
"notifications": [
{
"tokens": ["token_a", "token_b"],
"platform": 2,
"message": "Hello World Android!",
"title": "You got message",
"fcm_options": {
"analytics_label": "example"
}
}
]
}
```

Add `notification` payload.

```json
Expand Down

0 comments on commit 6de1643

Please sign in to comment.