NotifyHookDocs
Getting started

How it works

What happens between a notification appearing on your phone and a request reaching your server.

NotificationAn app posts it on your phone
MatchSource apps, then filters
RenderTemplate → JSON, secrets added in memory
Sign & sendOptional HMAC, HTTPS POST
Log & retryEvent log, backoff if it failed

1. Listening#

NotifyHook uses Android's NotificationListenerService, the system API behind Notification Access. Android hands it each notification as it's posted. NotifyHook ignores its own notifications, then takes a snapshot of the title, text and metadata. It doesn't keep the original notification object.

2. Matching#

Every enabled rule checks the notification in order. The first check that fails stops that rule:

  1. The app must be one of the rule's source apps.
  2. Group summaries are ignored. These are the empty "stack" entries some apps post next to the real notification.
  3. Ongoing notifications (music, navigation, downloads) are skipped unless Include ongoing notifications is on.
  4. Include filters and then exclude keywords run. See Filters.

Each rule decides on its own, so one notification can fire several rules. A notification dropped by a filter is logged as SKIPPED with the reason. Notifications from apps that no rule targets aren't logged, but they do appear in Diagnostics.

3. Rendering#

The rule's JSON template is filled in. Recognized {{placeholder}} syntax is replaced with JSON-string-escaped values. The template must supply quotes and valid JSON structure; unquoted missing values can produce invalid JSON. {{secrets.NAME}} values are read from the encrypted vault for sending and aren't persisted in the replay payload.

4. Signing and sending#

If the rule has an HMAC secret, NotifyHook signs the exact body bytes and adds X-NotifyHook-Signature. The request goes straight to your URL over HTTPS. The full list of headers is in Request format.

5. Logging and retrying#

Each delivery has an Event log entry, updated on retries, with credential redaction applied. Offline deliveries wait without consuming an attempt. Network errors and HTTP 408, 429 or 5xx are retried while attempts remain; after the limit the event becomes FAILED. Queued work survives ordinary restarts and reboots. See Delivery & retries.

What stays on the phone#

Rules, the recent event log, pending replay bodies, app settings and Diagnostics are stored locally. A replay body can contain notification text even though vault secrets are kept separate. Diagnostics records technical metadata for observed apps, and title previews and channel names only when an enabled rule targets the app. It continues recording while forwarding is paused. See sharing and clearing Diagnostics.

No notification content goes to a NotifyHook server. Configured endpoints, including hosted services in the recipes, receive the fields you send and apply their own storage and privacy policies. Opening the website uses your browser; buying or restoring Pro uses Google Play Billing. NotifyHook itself needs no account.

Limits to plan for#

  • Only notifications Android exposes. NotifyHook cannot read an app's message database, recover deleted messages, scrape custom notification images, or bypass Android's sensitive-content protections. See missing or shortened text.
  • Not exactly-once or guaranteed delivery. A retry can duplicate a request, while disabled access, force-stop, exhausted attempts, uninstalling or clearing storage can prevent delivery. New notifications can overtake queued ones. Do not rely on this as the only channel for safety-critical alerts.
  • No history backfill or removal events. Rules process notification-post callbacks, including updates. They do not import historical notifications or send events when a notification is dismissed.
  • Snapshots, not polling. Battery, network and other context variables are captured for a notification or test. They do not trigger rules by themselves and are not refreshed on retry.
No middleman

There is no NotifyHook cloud. Your phone talks to your endpoint directly. If your endpoint is unreachable, the delivery waits on your phone until it can be sent or runs out of attempts.