mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #692] support iOS 16.4 web push #510
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#510
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 @helmut72 on GitHub (Apr 1, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/692
💡 Idea support iOS 16.4 web push. Then there is no native App needed. Thank you.
Edit: It also solve this in your FAQ:
"The iOS is very bare bones and quite frankly a little buggy. I wanted to get something out the door to make the iOS users happy, but halfway through I got frustrated with iOS development and paused development."
@Mikaela commented on GitHub (Apr 2, 2023):
I think this is practically #346 as that is what iOS 16.4 requires for push notifications
@helmut72 commented on GitHub (Apr 2, 2023):
Yes
@binwiederhier commented on GitHub (Jun 27, 2023):
📢 Request for testing:
The next ntfy server release will contain a progressive web app (PWA) with Web Push support, which means you'll be able to install the ntfy web app on your desktop or phone similar to a native app (even iOS! 🥳), and get basic push notification support (without any battery drain).
Installing the PWA gives ntfy web its own launcher (e.g. shortcut on Windows, app on macOS, launcher shortcut on Linux, home screen icon on iOS, and launcher icon on Android), a standalone window, push notifications, and an app badge with the unread notification count.
The (hopefully) production ready version of the PWA is currently deployed on https://staging.ntfy.sh/app -- Install instructions with screenshots can be found in the docs (https://docs.ntfy.sh/subscribe/pwa/).
Please report bugs or issues on Discord/Matrix/Lemmy. PLEASE HELP TEST
Huuuuge thanks goes to @nimbleghost for developing this entire feature top to bottom. If you throw donations my way, I'll share them with him. He certainly deserves it for all this great work. 👏
@binwiederhier commented on GitHub (Jul 1, 2023):
@gedw99 Thanks for the feedback! It's live now so you can test there too. It's a process :D
@helmut72 commented on GitHub (Jul 1, 2023):
I also want to say thanks and it works most of the time. I don't use it for anything right now, just fire a curl command for testing to get a feeling how reliable it is. A very few time the first curl command will be ignored.
@nimbleghost commented on GitHub (Jul 1, 2023):
Do you see anything in the server logs when that happens?
@helmut72 commented on GitHub (Jul 1, 2023):
This is the log when both iPhones doesn't receive anything. Some IDs and IP are redacted:
I only see that web.push.apple.com was used 3 times, but I test with 2 iPhones. I have used one iPhone for testing when you developed web push. This iPhone is unreliable over 50%. Because of this, I have deleted everything on my ntfy instance, but not the pub/priv keys and also delete the PWA and rebooted this iPhone. My 2nd iPhone was integrated after re-install & configure 2.6.1. This iPhone need very few time a send curl command.
Also wanted to note that I have set token expiration to 180 days for both iPhones. Unlimited is only possible when I create a token from the web interface, for example for curl.
One more info: I only allow sending messages with an authenticated user, no anonymous usage possible. Some relevant env variables:
@nimbleghost commented on GitHub (Jul 1, 2023):
Hmm, if there's the
DEBUG Publishing web push message to 3 subscribersline and no errors (e.g. an error from Apple's servers), it doesn't look like anything is wrong on the server side.Some further notes for testing:
webpush.dbfile, it only stores a mapping of browser subscription endpoint (such ashttps://web.push.apple.com/<random-string>) and topic. No need to restart your iPhone or delete the PWA.The "real" way to fix this would be to track message delivery (e.g. have the PWA tell ntfy that the notification has been received) and then retry a notification after a certain time, but binwiederhier generally wants to avoid this as that's tracking the user, in a way.
@helmut72 commented on GitHub (Jul 1, 2023):
@nimbleghost
Thanks for explain some things!
This means it's currently by design? Maybe the "real" way should be optionally enabled.