🎨 Support sending notifications on Android https://github.com/siyuan-note/siyuan/issues/17114

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-02 11:04:38 +08:00
parent c0724d70f5
commit c5bffb68f1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 15 additions and 5 deletions

View file

@ -58,9 +58,17 @@ func sendDeviceNotification(c *gin.Context) {
return
}
var delayInSeconds int
if nil != arg["delayInSeconds"] {
delayInSeconds = int(arg["delayInSeconds"].(float64))
} else {
delayInSeconds = 1
}
util.BroadcastByType("main", "sendDeviceNotification", 0, "", map[string]interface{}{
"title": title,
"body": body,
"title": title,
"body": body,
"delayInSeconds": delayInSeconds,
})
}