Troubleshooting
Fixes for the common problems, starting with the tool that answers most of them.
Start with Diagnostics#
Open Settings → Diagnostics. It keeps a rolling buffer of about 400 notifications NotifyHook saw, including ones no rule forwarded, and labels what happened to each. Cleanup is batched, so the list can temporarily contain up to 449 entries. NotifyHook's own notifications aren't recorded.
| Label | Meaning | What to do |
|---|---|---|
| MATCHED | At least one enabled rule matched. | Check the Event log for the delivery result. |
| FILTERED | A rule targets the app, but a title, text or exclude filter dropped it. | Check the rule's filters. |
| GROUP SUMMARY | An empty "stack" entry. | Nothing to do. The real notification is listed separately. |
| ONGOING | Music, download, navigation and similar notifications. | Turn on Include ongoing notifications if you need them. |
| NO RULE | No enabled rule targets this app. | The package name shown is the one to add to a rule's source apps. |
| FORWARDING OFF | The master switch was off. | Resume forwarding in Settings. |
If Diagnostics is empty while your phone is getting notifications, NotifyHook isn't receiving them at all. See the next section.
Diagnostics records technical metadata such as package, notification key, flags and whether text exists for observed apps. Title previews and channel names are stored only for apps targeted by an enabled rule. It continues recording while forwarding is paused; the pause switch is not a recording-off switch.
Use the Share as text icon to open Android's Share diagnostics chooser. Review the export first: it includes device/app versions, enabled rule names and packages, technical notification metadata, and titles for targeted apps. It isn't uploaded automatically. The Clear icon removes Diagnostics only, without clearing the event log or canceling queued work.
Nothing arrives at all#
Check Settings → About → Notification Access:
- Not granted: tap Enable and turn NotifyHook on in the system list.
- Not running: Android has stopped the listener. Tap Fix, or turn Notification Access off and on again for NotifyHook.
Then stop Android from putting the app to sleep:
- Set Settings → About → Battery usage to Unrestricted.
- Samsung: in Settings → Battery → Background usage limits, make sure NotifyHook isn't in Sleeping apps or Deep sleeping apps. You can add it to Never sleeping apps.
- Xiaomi, Huawei, OnePlus, Oppo and other brands have similar "auto-start" or "app launch" settings. Allow NotifyHook to run in the background. dontkillmyapp.com has instructions for each brand.
If you used Android's Force stop, reopen NotifyHook so Android can restart its components, then check Notification Access again and trigger a new notification. After a reboot, unlock the phone before expecting credential-protected app storage to be available.
Text is missing, shortened or hidden#
{{text}}takes the newest chat message, expanded big text or collapsed preview, in that order.{{textPreview}}deliberately keeps only the collapsed preview. Check which your template uses.- Some apps publish only "New message" or hide previews. Enable message previews in that source app if appropriate. NotifyHook cannot recover text the app never exposes, OCR images or retrieve full conversations.
- "Sensitive notification content hidden" means Android hid a one-time code before NotifyHook received it. See One-time codes are hidden.
- Work-profile policies, private spaces and manufacturer restrictions may prevent a listener from seeing some notifications. A locked private space stops its apps from posting notifications. Check Android/profile policy rather than changing the webhook.
One-time codes are hidden#
Since Android 15, the system hides notifications that contain a one-time code (verification or login codes) from notification listeners it doesn't trust. Android replaces the title with the app's name and the text with Sensitive notification content hidden before NotifyHook receives it, so your webhook gets that placeholder. The real text never reaches NotifyHook, so it can't be recovered afterwards. Messages without a code aren't affected.
When this happens to an app one of your rules targets, NotifyHook shows a banner on the Rules screen, and Diagnostics adds a note to the entry. Settings → About → One-time codes shows whether NotifyHook is allowed to see them.
The codes are detected by the system's notification assistant (Enhanced notifications on most phones). There are two ways to stop the redaction.
Option 1: turn off Enhanced notifications#
Turn off Enhanced notifications in the system notification settings (on some phones it's under Notifications → More settings). With it off, nothing is flagged and codes reach NotifyHook in full. Notifications that arrived before you turned it off stay hidden, so test with a new code. You lose the assistant's suggested actions and smart replies.
Option 2: allow NotifyHook (needs a computer, once)#
- Turn on Developer options and USB debugging on the phone, and connect it to a computer with adb.
- Run:
Shell
adb shell appops set la.marsave.notifyhook RECEIVE_SENSITIVE_NOTIFICATIONS allow - Open Notification Access in system settings and turn NotifyHook off and on again. Android only checks this when access is switched on, so the command alone has no effect until you do.
The setting survives restarts and app updates. Run it again if you uninstall and reinstall NotifyHook. To undo it, run the same command with default instead of allow.
One-time codes protect your accounts. Anyone who can read your webhook's data can use the codes it forwards, so only do this for an endpoint you control, and consider a rule filter so that only the codes you need are forwarded.
A rule never fires#
- Is the rule enabled (switch on the Rules screen)?
- Does it have at least one source app? With no apps selected, a rule matches nothing.
- Is it the right app? Some notifications are posted by a different package than you'd expect, for example a system or companion app. Diagnostics shows the real package (NO RULE entries).
- Are the filters too strict? Title contains and Text contains must both match when both are set. Check for FILTERED entries.
- Is it an ongoing notification?
The event log shows an error#
| Error | Likely cause |
|---|---|
400 Bad Request | The body isn't what the endpoint expects, or isn't valid JSON. Look at the RESPONSE section for the server's reason and check unquoted placeholders. |
401 / 403 | A missing or wrong token. Check the header name and the secret value, then use Retry now. A deleted secret is sent as an empty value. |
404 | Wrong URL or path, or (in n8n) an unpublished/inactive workflow or a /webhook-test/ URL without an active test listener. |
405 Method Not Allowed | The endpoint doesn't accept POST, or a redirect turned the request into a GET. Use the final URL. |
413 | The body is too large. {{text}} can contain the full expanded message too. Remove long fields, try {{textPreview}}, or truncate through your own receiver; templates have no substring function. |
429 / 5xx | The server is overloaded or failing. NotifyHook retries automatically. |
| Timeout, Unable to resolve host, connection refused | The server is unreachable from the phone. Is it public? Is DNS correct? Is the firewall open? A .local or LAN address only works when the phone is on that network. |
| TLS / certificate errors | Check expiry, hostname and the full certificate chain. A self-signed certificate is not trusted by default; use a certificate trusted by Android, such as one from Let's Encrypt. http:// is not a workaround. |
Signature doesn't verify#
Almost always caused by hashing parsed and re-serialized JSON instead of the raw body, or by a secret with a stray newline. See the signature checklist and the test vector.
Receiving duplicates#
Delivery can repeat. De-duplicate on {{event.uuid}} for retries. Separate rules and notification updates receive new IDs; a notificationKey alone is not a unique message ID because apps reuse it. Check for duplicate rules or imports, repeated notification updates, and forwarding loops such as ntfy → NotifyHook → ntfy. Apply any cross-rule or content deduplication on your receiver without discarding legitimate updates.
Deliveries are delayed#
- Check the queued reason in the Event log: Wi-Fi only, paused, or no network.
- When the phone is idle, Android Doze can postpone background work, retries included, until the next maintenance window. Unrestricted battery usage helps.
- Notifications that arrive while the phone is in deep sleep are forwarded when Android delivers them to apps.
Still stuck?#
Get in touch. A real person reads every message. Include your NotifyHook version (bottom of Settings), Android version, phone model, the Diagnostics labels you see and the Event log error. Leave out URLs, tokens and private notification content.