mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #1427] Web push on iOS PWA with self hosted ntfy doesn't work #1004
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1004
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alcroito on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1427
🐞 Describe the bug
I've set up a self hosted ntfy server, installed via docker on a linux host running ubuntu 24.04.
It is running behind a traefik server, with valid lets encrypt certificates on https.
I'd like to have PWA web push (rather than ios push notifications) working on iOS + iPhone via stock Safari.
Unfortunately it doesn't seem to work.
Repro:
I generated keys with
docker exec -it ntfy ntfy webpush keysand added them to my docker compose.I've opened the ntfy https website in Safari, pressed Share -> Pressed Add to homepage to add a PWA icon.
I opened the PWA icon, logged in, force-closed it, opened it again.
I've subscribed to my topic, and then send a test notification from my desktop machine browser.
No web push notification arrives. The server logs show one warning:
Follow up messages don't trigger any more warnings, until i reboot the docker container.
I get the same behavior if I add a PWA with Safari on a mac machine.
As an aside, I will point out that I set up ios push notifications via app, and that works fine. Only Web push seems to be problematic.
💻 Components impacted
ntfy 2.14.0 (
eac523d), runtime go1.24.5, built at 2025-08-05T08:26:20ZiOS 18.6.1
iOS app 1.3 (4), but shouldn't be relevant
💡 Screenshots and/or logs
Here are the trace logs from the server when sending the message:
🔮 Additional context
My docker compose:
@wunter8 commented on GitHub (Aug 19, 2025):
Your private key env variable in your compose file is missing a
$@alcroito commented on GitHub (Aug 19, 2025):
How embarrassing. That indeed fixes it for iOS + Safari.
Sorry for the noise.
I notice a new warning / error, presumably from my tests with Chrome PWA on a mac, but that might be related to me deleting the PWA after unsuccessful testing.