mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1191] No more IOS push notification since July 2024 #838
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#838
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 @GuillaumeDebernard on GitHub (Sep 29, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1191
Quick description
I have NTFY running with docker-compose, behind an nginx reverse-proxy with
https(certbot).Since mid-July, I no longer receive notifications on IOS, which used to work fine.
The requests I send look like :
curl -d Hello https://ntfy.myDomain.com/myTopic.Note that reverse-proxy is used for other services and work perfectly fine for them.
I didn't see any trace log about usage limits.
What's still working
https://ntfy.sh/myTopicWhat I tried, and didn't work
server.ymlto env variables for configurationhttps://myDomain.com/services/path/to/MyTopicto subdomain :https://ntfy.myDomain.com/myTopic(It allow me to acces webapp by the way)My configurations
NTFY_BASE_URLmatch exactly the default server I set up in my app.docker-compose.yaml file
Nginx default.conf.template file
What i really don't understand is why it stopped working. I should have read a hundred times all the configuration page from
ntfy.shwithout finding any problems in my configuration.Since I didn't see any new post about that issue I assumed it was an nginx configuration issue, but every other services I host, and ntfy usage (webapp, android) are still working.
I upgrade recently IOS 17 to 18 without any improvement.
I'm running out of ideas, if anyone is facing the same issue, join the club ;)
I'd also like to take this opportunity to congratulate you on your great work!
@a1ad commented on GitHub (Oct 8, 2024):
Yeah, same here
@plittlefield commented on GitHub (Oct 8, 2024):
I’ve just installed the docker ntfy behind a Traefik proxy with password user logins and a topic called with an API.
It all works but I’m not getting any iOS notifications - UNLESS I go in to the app and pull down to refresh.
What am I doing wrong or is this a deal breaking bug?!
Thanks.
@wunter8 commented on GitHub (Oct 8, 2024):
In general, notifications to iOS are tricky. I haven't heard anything specific about updates to iOS 18 or Nginx causing problems, though. It's definitely strange that things were working and then stopped (at least for OP).
You'll have better luck with notifications on iOS through the PWA. You'll need to set up web push keys on your self-hosted server (and have the server behind a domain with a TLS cert that is publicly trusted (e.g., not self-signed)), but it's easy to set up. With the PWA, notifications should arrive reliably, and you'll have more features than the native iOS app (like markdown formatting and embedded image previews).
Here's the list of things I tell people to do to get iOS notifications working, so you can double-check that everything is in order (but again, if it was working and stopped without any sort of config change, I don't know what would cause that):
base-urlconfig in server.yml or NTFY_BASE_URL in env variablesupstream-base-urlin server.yml or NTFY_UPSTREAM_BASE_URL in env variables to "https://ntfy.sh"@plittlefield commented on GitHub (Oct 8, 2024):
Wow, very detailed reply many thanks.
I will try that tomorrow and report back.
@plittlefield commented on GitHub (Oct 9, 2024):
Hi @wunter8 I have news.
The addition of the variable NTFY_UPSTREAM_BASE_URL to my docker-compose.yml now makes a Notification appear in the Notification Centre of my iPhone.
However, this is still not quite good enough for me, because I need it to appear on the Lock Screen ... just like Pushover does.
Also, what is PWA ?
@plittlefield commented on GitHub (Oct 9, 2024):
OK, I take that back!
I have just received a ntfy notification on my lock screen and my watch!
Happy days!
@a1ad commented on GitHub (Oct 9, 2024):
@plittlefield with the app from the store? Mine is still not working
@wunter8 can we use "server.yml" and the docker ENVs at the same time?
@plittlefield commented on GitHub (Oct 9, 2024):
@a1ad yes.
Here is my redacted docker compose file ...
https://pastebin.com/raw/TjEiyaZs
@wunter8 commented on GitHub (Oct 9, 2024):
@a1ad I think it's okay to use server.yml and env variables simultaneously, but I'm not certain which would take priority if there were conflicts. Probably the env variables. I'd recommend just using one or the other, though, to avoid complicating things
The PWA (Progressive Web App) allows you to install the web app as a standalone app on your phone. It can still receive notifications in the background (on iOS >= 16.4), has more features than the native app (like markdown support), and has more reliable notifications. To self host the PWA, you need to configure web push keys (https://docs.ntfy.sh/config#web-push)
@plittlefield commented on GitHub (Oct 9, 2024):
OK, I might try that tomorrow.
What do I have to install on the phone for this work or does it just use the existing iOS app?
@wunter8 commented on GitHub (Oct 9, 2024):
After setting up the web push keys, load the self-hosted web app in Safari and then go to Share > "add to homescreen"
@plittlefield commented on GitHub (Oct 9, 2024):
Blimey, I did not know about that and I've had an iPhone for 5 years :-)
@plittlefield commented on GitHub (Oct 9, 2024):
Oooo, will that give me nice count badges?!
@wunter8 commented on GitHub (Oct 9, 2024):
Background notifications for PWAs on iOS have only been supported since iOS 16.4 (March 2023).
I'm not sure about the count badges 🤷♂️ (I don't use iOS)
@plittlefield commented on GitHub (Oct 9, 2024):
@wunter8 commented on GitHub (Oct 9, 2024):
Oh, I know what they are. I just don't know if PWAs support it in general. And I don't know if the ntfy PWA supports them specifically.
(Or were you showing us the ntfy app doesn't have a badge meaning they're apparently not supported? I also can't tell if that's the ntfy app or the ntfy PWA)
@plittlefield commented on GitHub (Oct 9, 2024):
A bit of both - showing you the unread badge count on WhatsApp and that ntfy does not support that feature yet.
@plittlefield commented on GitHub (Oct 10, 2024):
Web push configured and seems to be OK but after putting the Safari bookmark on the iOS home screen (and then a login to my ntfy account) I no only do not get new notifications but also no unread badges.
Oh well.
I shall stick to the actual app for now.
@plittlefield commented on GitHub (Oct 10, 2024):
I’m trying Chrome on iOS as well - it shows the notice about adding notifications -

@wunter8 commented on GitHub (Oct 10, 2024):
When you click on the ntfy-web icon on your homescreen, does it just load the web app in Safari or does it launch a PWA in a standalone screen (without the Safari URL bar on top and stuff)?
@plittlefield commented on GitHub (Oct 10, 2024):
I think it’s a PWA … what do you think?
… getting there, but of course it’s the actual iOS app that’s showing me notifications on my “Notification Centre” and not the web app.
At least I think so!
Did you want me to uninstall the actual App to see ?
@wunter8 commented on GitHub (Oct 10, 2024):
Yes, that looks like the PWA. You could try uninstalling the native app. No reason not to try that
@plittlefield commented on GitHub (Oct 10, 2024):
Okay, that's uninstalled ... drum roll for later today :-)
@plittlefield commented on GitHub (Oct 11, 2024):
Well blow me down with a feather!
@svewag commented on GitHub (Oct 27, 2024):
I can confirm that the notifications on iOS are working just fine in the PWA, but not in the app.
@ghost commented on GitHub (Oct 31, 2024):
@wunter8 Sorry to interrupt. What is NTFY_UPSTREAM_BASE_URL? Do notifications from our self-hosted server need to be forwarded to the official ntfy server?
Also, if I may ask politely, is it because the official ntfy server has APNS configured, whereas our self-hosted server does not?
I'm a novice in this area, so apologies for any mistakes.
@wunter8 commented on GitHub (Oct 31, 2024):
@chlorine3545 You are correct. Here's some info: https://docs.ntfy.sh/config/#ios-instant-notifications
Let me know if you have more questions
@ghost commented on GitHub (Oct 31, 2024):
First of all, thanks for your reply @wunter8.
Not only Ntfy, but all these unified push can't work properly on iOS, we have to use APNs, which is a shame to some extent. Maybe I should get an Android phone and flash it with LineageOS or something.
@lbeier commented on GitHub (Nov 1, 2024):
Hey folks! First of all, thanks for this amazing project! 🥇
I'm also having issues with iOS push notifications. I've set both
base-urlandupstream-base-urland I believe they are correct.Not sure what else I'm missing though. It's likely be something really stupid, but I can't really understand what it is.
Here is my
docker-compose.yml:And here is my
server.yml:Some additional info that might be relevant:
behind-proxyneeds to be set to true as per my understanding.https://ntfy.<MY-HOMELAB-HOST>"withhttps://and no trailing/.@lbeier commented on GitHub (Nov 1, 2024):
So, I've installed the NTFY app on my iPad and the notifications are working on the iPad.
Both iPhone and iPad are in public beta.
iOS 18.1 (22B83)
iPadOS 18.1 (22B82)
There was a pending update on my iPad. Just installed it (iPadOS 18.1 (22B83)) and the notifications are still working.
The issue seems to be isolated to iOS only. 🤔
@wunter8 commented on GitHub (Nov 1, 2024):
Hmm. I haven't heard of someone having issues on iOS but not on iPadOS. That seems to suggest your ntfy server is configured correctly. I've heard some people say reinstalling the ntfy app can help. But I'm not sure what else to try.
I generally recommend people use the PWA on iOS, though. It has more features than the native app and more reliable notifications. You need to configure web push to get it to work: https://docs.ntfy.sh/config#web-push
@lbeier commented on GitHub (Nov 1, 2024):
Hey @wunter8!
Thanks for the suggestion! I've setup and I'm getting notifications on the pwa now.
Will still investigate a bit mor about the iOS specific issue and get back here if I find something. But for now, the pwa is working just fine.
@plittlefield commented on GitHub (Nov 1, 2024):
I'd like to chime in and say that while the PWA is working great, there does not seem to be a synchronisation between the PWA app running on my phone and the web site in a browser tab.
What I mean by this is that when I get a notification it appears on both devices, BUT when I read or read and delete from either of the devices, the other device does not appear the same ... indeed all notifications remain UNREAD.
@wunter8 commented on GitHub (Nov 1, 2024):
@plittlefield That is the expected behavior right now. The state of individual messages is not synchronized between devices/clients
@plittlefield commented on GitHub (Nov 1, 2024):
Oh, okay!
@soffio commented on GitHub (Nov 3, 2024):
I set up a self-hosted a few days ago and it worked fine. But yesterday I couldn't receive notifications anymore. Today I reinstalled the app and it worked again. It's so weird.
@Vhaelan commented on GitHub (Dec 29, 2024):
I just wanted to add that setting the NTFY_UPSTREAM_BASE_URL environment variable also fixed the issue for me, even though it was also set in server.yml before. The symptoms were the same for me, notifications just stopped coming during the summer, without any changes to my config, but it seems the env variable solves the issue.
@aryapramudika commented on GitHub (Jan 3, 2025):
I have same problem, after change the upstream-base-url to https://ntfy.sh now notification is worked.
here my server.yml
@Victor-Buendia commented on GitHub (Jan 7, 2025):
Same here! This was the only change needed and the iOS App notifications are now back.
@kilianc commented on GitHub (Jan 7, 2025):
downloading the official app, adding a test topic and tapping sending test does not trigger a notification but refreshing the page shows it was published. I tried pretty much everything in the settings but nothing was helpful.
I understand this is a free product, but I wanted to mention that at this point in time the iOS notification flow, as shown in the homepage does not work with the free tier on the latest iOS (18.2).
I am excited to see this resolved and test it for my personal use case. I'd likely not subscribe to a pro tier until it works but I want to support this amazing product with a donation!
@Snake16547 commented on GitHub (Feb 8, 2025):
Also wanna jump in here.
Configured everything like you guys. Push notifications coming through the only thing I'm missing is the little red number over the native ntfy app icon. Is this even possible?
@ItzYaBoiV commented on GitHub (Mar 8, 2025):
Chiming in as adding this to my env variables fixed the notifications for my iPhone
@Amwagner45 commented on GitHub (Mar 9, 2025):
None of the above worked for me I added the base-upstream-url in the yaml file and set as an environment variable. When I go to the app and scroll down I can see new notifications but it isn't creating a banner or add to my Notification Center on iOS. Seems like the only other option is the PWA but that will need to be another weekend project to change.
@wunter8 commented on GitHub (Mar 9, 2025):
@Amwagner45 These are the things you need to do to get iOS push notifications to work:
base-urlconfig in server.yml or NTFY_BASE_URL in env variablesupstream-base-urlin server.yml or NTFY_UPSTREAM_BASE_URL in env variables to "https://ntfy.sh" (without a trailing slash)@amcmanu3 commented on GitHub (Mar 19, 2025):
I'm also experiencing this issue despite setting NTFY_UPSTREAM_BASE_URL
@adamcravas commented on GitHub (Mar 24, 2025):
@wunter8 -- Is the PWA iOS Push notifications supported if we're not self hosting and just using the public https://ntfy.sh topics? I've run into similar issues but am not hosting my own NTFY.
@wunter8 commented on GitHub (Mar 24, 2025):
Yes, the public instance has web push configured, so you can use it as a PWA. Just go to the web app (https://ntfy.sh/app) and "Save to homescreen"
@adamcravas commented on GitHub (Mar 24, 2025):
@wunter8 -- Thanks for the quick reply! I've done that and I can see the red bubble number increase as I push messages from my desktop. However, I have to have the web app open for this to happen. I don't receive any push notifications. Do you happen to have any experience in trouble shooting for that?
@adamcravas commented on GitHub (Mar 24, 2025):
Oh I've got it now! For posterity -- the key (for me) was to Save to home screen from https://ntfy.sh/app (as wunter8 mentioned exactly above). I originally had https://ntfy.sh.
Thanks for all the help @wunter8.
@garymoon commented on GitHub (Apr 19, 2026):
I tried all the fixes I saw in this thread and no glory. Then I noticed my
base-urlwashttpinstead ofhttps🤦♂️😂Thanks to everyone here sharing fixes, and to binwiederhier for ntfy 💙