更新文档

This commit is contained in:
Fin 2025-07-21 17:54:13 +08:00
parent 1903797c8d
commit 659c10fff8
2 changed files with 5 additions and 1 deletions

View File

@ -75,4 +75,6 @@ List of supported parameters, specific effects can be previewed in the APP.
| ciphertext | Ciphertext for encrypted push |
| isArchive | Pass 1 to save the push, pass other values to not save the push, if not passed, it will be decided by the APP settings whether to save. |
| url | URL to jump to when the push is clicked, supports URL Scheme and Universal Link |
| action | Pass "none" to prevent a popup when the push is clicked |
| action | Pass "none" to prevent a popup when the push is clicked |
| id | When using the same ID value, it will update the corresponding push notification content<br>Requires Bark v1.5.2, bark-server v2.2.5 or above |
| delete | Pass "1" to delete the notification from the system notification center and APP history, must be used with the id parameter |

View File

@ -76,6 +76,8 @@ curl -X "POST" "https://api.day.app/push" \
| isArchive | 传 1 保存推送传其他的不保存推送不传按APP内设置来决定是否保存。 |
| url | 点击推送时跳转的URL 支持URL Scheme 和 Universal Link |
| action | 传 "none" 时,点击推送不会弹窗 |
| id | 使用相同的ID值时将更新对应推送的通知内容<br>需 Bark v1.5.2, bark-server v2.2.5 以上 |
| delete | 传 "1" 时将从系统通知中心和APP内历史记录中删除通知需搭配 id 参数使用 |
## 快捷指令
Bark 支持快捷指令直接发送推送,以下是当收到交警短信时,忽略静音模式持续响铃提醒用户的自动化示例。