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:
2026-12-02 12:20:22 +00:00
parent 26b1c00094
commit f5f31b7bcd
12 changed files with 355 additions and 55 deletions
@@ -67,6 +67,18 @@ files match, the most recently modified file wins. Without `open=`, exactly one
regular file in `public/` is attached automatically. Zero or multiple files
produce no attached artifact. This is separate from ntfy's `artifacts=` keys.
`link=<pattern>` makes a tap on the phone notification (ntfy and app) open a
URL the stage produced, such as a published doc. The pattern follows the `open=`
rules; the matched file's first non-empty line must be an absolute http(s) URL
without credentials or fragment. The run stays reachable from the notification's
run action, and `open=` still attaches its artifact. A missing file or invalid
URL keeps the usual tap target and is noted on the notification receipt:
```notify
on=success
link=standup-link.txt
```
## Optional explicit delivery stage
Use native delivery only when the user needs delivery as an explicit routed stage