From e504b1e0b865cd09ca7854f8150385ce072ae33b Mon Sep 17 00:00:00 2001 From: Cyril Levis Date: Thu, 16 Jun 2022 19:58:24 +0200 Subject: [PATCH] feat: documentation for msgextras actions documentation for https://github.com/gotify/android/pull/236 --- docs/msgextras.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/msgextras.md b/docs/msgextras.md index 086702b..21bbb1c 100644 --- a/docs/msgextras.md +++ b/docs/msgextras.md @@ -81,6 +81,38 @@ Some of the namespaces are used by official clients: } ``` +### `actions`.`open` + +`actions`.`open` (string): Opens an URL on "open" button notification click. + +#### Example + +```json +{ + "extras": { + "client::notification": { + "actions": { "open": "https://gotify.net" } + } + } +} +``` + +### `actions`.`share` + +`actions`.`share` (string): Share an URL on "share" button notification click. + +#### Example + +```json +{ + "extras": { + "client::notification": { + "actions": { "share": "https://gotify.net" } + } + } +} +``` + #### Support | Client | since | description |