Skip to content

Commit

Permalink
docs: refactor example commands for clarity and consistency
Browse files Browse the repository at this point in the history
- Remove `/topics/` prefix from the topic name in the example command
- Split the single notification command into multiple lines for clarity
- Replace `-k "API key"` with `--fcm-key "FCM Credentials Key Path"` in the example command

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jun 23, 2024
1 parent f8eb352 commit e814868
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ gorush -android -m "your message" -t "device token"
Send messages to topics.

```bash
gorush --android --topic "/topics/foo-bar" \
gorush --android --topic "foo-bar" \
-m "This is a Firebase Cloud Messaging Topic Message" \
--fcm-key "FCM Credentials Key Path"
```
Expand Down Expand Up @@ -418,7 +418,9 @@ $ gorush -ios -m "your message" -i "your certificate path" \
Send single notification with the following command:

```bash
gorush -android -m "your message" -k "API key" -t "Device token"
gorush -android -m "your message" \
--fcm-key "FCM Credentials Key Path" \
-t "Device token"
```

## Run gorush web server
Expand Down

0 comments on commit e814868

Please sign in to comment.