18
submitted 1 year ago* (last edited 1 year ago) by binwiederhier@discuss.ntfy.sh to c/ntfy@discuss.ntfy.sh

ntfy iOS support is about to get much better. While I haven't worked on the native app in a while, the progressive web app (PWA) is going to make the web app enough to receive notifications on iOS (and others).

Almost all of the credit goes to @nimbleghost for the implementation.

top 9 comments
sorted by: hot top controversial new old
[-] karmanyaahm@social.linux.pizza 4 points 1 year ago
[-] chris@lem.cochrun.xyz 4 points 1 year ago

This sounds awesome!

[-] Splatsune@beehaw.org 4 points 1 year ago

The background notifications will be nice! I'm using ntfy for (among other things) notifications for a housemate that isn't as tech-savvy, so it'll be nice to get them smart home notifications that they don't have to keep a tab open for (if I understand this correctly).

[-] zer0@discuss.tchncs.de 3 points 1 year ago

This is exciting

[-] Container9043@lemmy.one 1 points 1 year ago

Awesome! I’m super excited, I was close to migrating off of ntfy with the iOS/SelfHost notification issues

[-] binwiederhier@discuss.ntfy.sh 3 points 1 year ago

What notification issues? I know iOS is not perfect, but it does work pretty reliably once set up.

[-] Container9043@lemmy.one 2 points 1 year ago

Probably 70% of the time I get “New notification” as the notification title, rather than the actual notification. And refreshing the topic doesn’t show me the updates. I’m not sure why it acts so weird, but the web app works perfectly for me.

[-] binwiederhier@discuss.ntfy.sh 3 points 1 year ago

Yeah that's fair. The experience is not great. I hear ya.

Those are two different issues:

  1. Re "New message": When you publish to your selfhosted server, it forwards a "poll request" to ntfy.sh, which sends that to APNS (Apple notification service), which forwards that to your phone. The "poll request" only contains the message ID to protect your privacy. The iOS app then contacts your home server to receive the actual message. If the iOS app cannot do that in time, or your server is not reachable, it must still show a notification (iOS restriction), so it shows "New message". This is not ideal, and could in the future be solved by end-to-end encryption.

  2. Re "no updating UI": This is a known issue (see https://docs.ntfy.sh/known-issues/#ios-app-not-refreshing-see-267). It's basically just related to me not knowing how iOS development works. I tried and tried and tried and I couldn't get it to reliably update the UI. It's related to the fact that the iOS Notification Service Extension (NSE) -- the thing that receives the notification -- runs in a different process as the app, and has to notify the app to update the UI. It's super weird.

-- Anyway. Sorry about that.

[-] Container9043@lemmy.one 2 points 1 year ago

Totally understand the pains of iOS development. Still love the service and the work on it!

this post was submitted on 15 Jun 2023
18 points (100.0% liked)

ntfy

335 readers
9 users here now

ntfy (pronounced notify) is a simple HTTP-based pub-sub notification service. You can use it to send push notifications to your phone via HTTP PUT/POST.

ntfy websiteDocumentationGitHubGoogle PlayF-DroidDiscordApp StoreMatrix

If you'd like to become a sponsor, I would be humbled to accept your donation via GitHub Sponsors or Liberapay 💸💰.

founded 1 year ago
MODERATORS