Notify link=: a stage's public/ file sets the phone tap target
A stage's notify block may name `link=<pattern>` (validated like `open=`). When the hook fires, the newest public/ match is read (at most 4 KiB); its first non-empty line, if an absolute http(s) URL ntfy accepts as a click, becomes the ntfy Click and the app notification click, with the run kept as the app's run action and ntfy's browser view. A missing file or invalid URL keeps today's tap target and is noted on the receipt diagnostic. Android opens such an http(s) click in the browser (after clearing the notification) instead of handing it to Flutter as a route.
This commit is contained in:
@@ -57,6 +57,8 @@ type NotificationPolicy struct {
|
||||
Destination string `json:"destination"`
|
||||
Artifacts []string `json:"artifacts,omitempty"`
|
||||
Open string `json:"open,omitempty"`
|
||||
// Link names a public/ file whose first line is the http(s) tap target.
|
||||
Link string `json:"link,omitempty"`
|
||||
}
|
||||
|
||||
// Public phone setup only. Never include publishing endpoints or credentials.
|
||||
|
||||
Reference in New Issue
Block a user