mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
🎨 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:
parent
f07ae1fc75
commit
a7308d3c4f
1 changed files with 4 additions and 2 deletions
|
|
@ -40,10 +40,12 @@ func sendDeviceNotification(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
payload := arg["payload"].(string)
|
||||
title := arg["title"].(string)
|
||||
body := arg["body"].(string)
|
||||
evt := util.NewCmdResult("sendDeviceNotification", 0, util.PushModeSingleSelf)
|
||||
evt.Data = map[string]interface{}{
|
||||
"payload": payload,
|
||||
"title": title,
|
||||
"body": body,
|
||||
}
|
||||
util.PushEvent(evt)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue