mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #898] iOS not receiving push notifications (iPhone 15 Pro, iOS 17.0.2) #636
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#636
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 @jacob-shuman on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/898
🐞 Describe the bug
I've setup ntfy using docker compose and I am unable to receive push notifications.
💻 Components impacted
iOS App
🔮 Additional context
For both the base url in the server.yml config as well as the default server in the iOS app I have tried using my local ip address both with and without the port (80) prefixed with
http://. When I go into the app and subscribe to a topic manually refreshing the topic correctly shows me notifications for that topic. In my server.yml file I uncommented the upstream line for iOS users. I've noticed that when I try to send a test notification in the app and refresh the test notification does appear but a push notification is never sent (I'm not sure if this is intentional). I have enabled push notifications in the app (I do have scheduled summary for other apps but I enabled immediate delivery for the ntfy app).Please let me know if there's any other information I can provide. Thank you for all of your hard work developing ntfy, it looks incredible and I'm excited to start using it!
@chrismueller commented on GitHub (Sep 28, 2023):
For iOS you need to configure "https://ntfy.sh" as "upsteam-base-url" in your server.yml.
See: iOS instant notifications for futher details.
@Aspect13 commented on GitHub (Sep 30, 2023):
Same thing. But I use a different port for the app, if it matters (hopefully not).
The ntfy is running in docker with ports "9876:80", so inside a container it is still listening on 80. For base-url and server address I set http://my.dns.com:9876. Message flow is working correctly, but pushes do not work.
@ChokunPlayZ commented on GitHub (Oct 1, 2023):
yes it is intentional, the push notification will not be sent to the device that send the notificationtry running this in a terminal on other device you have, or send the test notification via the web interface
it should trigger the push notification on your phone
@Aspect13 commented on GitHub (Oct 1, 2023):
Absolutely untrue.
Try sending a test notification from the application clicking
...in top right corner ->Send test notification. My device (iOS) gets the notification afterwards.(No, I have not solved the issue with self-hosted servce, I used
https://ntfy.shserver for this test case)@ChokunPlayZ commented on GitHub (Oct 1, 2023):
I am able to get the notification now, not sure why I was able to reproduce what OP is saying earlier today
I'm on a self hosted server and it works, I use a reverse proxy to expose the service
@bvbeek commented on GitHub (Oct 4, 2023):
Same issue here, no push notifications
@ctschach commented on GitHub (Oct 4, 2023):
Same happened to me, after I upgraded to and iPhone15….
Once I removed the ntfy app, deleted all data and then downloaded it again from the AppStore, confirmed that I want to receive messages, everything was working again as it should.
I assume that the restore/transfer messed up the internal push identifies…
@Trystan34 commented on GitHub (Oct 8, 2023):
I am still facing the same issue. I do not receive push notifications on iOS 17.0.1 nor on iOS 17.0.2 or iOS 17.0.3.If I refresh manually in the app, they do show up. I tried reinstalling as @ctschach suggestedbut still nothing unfortunately.I am also self hosting and modified config to use upsteam-base-url: https://ntfy.sh/
Similar to @Aspect13, I also use a different port on host as port 80 is being used by another service. The notifications work as expected on my domain on the desktop web browser with Cloudflare Tunnel.
Edit: I have fixed the issue and now receive notifications on iOS. It was a misconfiguration on my part.
In your server.yml file: I had the base url set to local ip rather than my domain.
base-url: 192.168.1.10-> base-url: https://exampledomain.com@Aspect13 commented on GitHub (Oct 9, 2023):
@Trystan34 I noticed that you have ssl setup.
My server listens on 80 (http) not 443 (https) could this be the case?
I'm still having the issue, my config seems to be fine in terms of base-url and upsteam-base-url
@Trystan34 commented on GitHub (Oct 11, 2023):
@Aspect13 My server listens on port 8080 (http) not SSL but due to the one of the useful features of Cloud Flare, it provides a toggle for auto SSL encryption to the domain even though the actual NTFY server is listening on HTTP.
Originally I had my base-url set to the static ip of my Raspberry Pi but I did not receive the notifications, since changing it to my domain with https (even though I do not have HTTPS enabled in the ntfy server.yml) it works now.
My docker-compose file
Since the Cloud Flare Tunnel points to my static ip of the Raspberry PI including port 8080, in the iOS app, I have the server set to just domain name excluding the port number. Also, in the server.yml the base-url does not include the port.
@jamesscottbrown commented on GitHub (Oct 19, 2023):
Ditto: after migrating to a new iPhone using Quick Start transfer push notifications didn't work on the new phone, but after deleting and re-installing the app they worked again.
@mikekuzak commented on GitHub (Nov 22, 2023):
Using Docker Env variables should work too, right ?
@emiwirs commented on GitHub (Nov 28, 2023):
I have been trying to find out for days what my notification/alert problem caused , but for me it was rather straight forward. I am using an add blocker (a PiHole) which blocks the firebase URL “firebaselogging-pa.googleapis.com”.
Once whitelisting this one, it solved all my problems… 😬.
So pay attention to any dns filtering, hopefully this helps someone!
@mikekuzak commented on GitHub (Nov 29, 2023):
So just that I understand this correctly, on the Nfty server:
What are the settings on the ios app ?
Default server: https://ntfy.sh but when you add topic you specify your server https://myntfy.com topic lets say: 'test' ?
@emiwirs commented on GitHub (Nov 29, 2023):
That is mostly correct, only difference is default server is myntfy.com on iOS.
Environment: ntfy in docker, traefik for exposing through ssl, iOS en iPadOS devices, working server.yml file
Tested:
All of the above (plus switching default servers) do get the test messages through on the iOS devices after pulling down, forcing refresh, in the apps. However, the notifications simply didn’t get through at all.
Switching off PiHole filtering made the notifications for new messages appear instantly (depending on the priority of the test messages, low priority I didn’t wait for, but 3 default prio or higher, direct results). Blocking off the firebase url was occurring when PiHole was switched on again.
Self hosting problem? No, I also used a fresh app install and only defined ntfy.sh/mytopic, same problem.
And now also solved.
@mikekuzak commented on GitHub (Nov 29, 2023):
well my confusion here is statement from the author:
The upstream-base-url must be configured to match exactly what you have configured as a default base URL in your iOS app. Otherwise messages will not arrive at all. See https://docs.ntfy.sh/config/#ios-instant-notificationsSo my understanding is that if you point
NTFY_UPSTREAM_BASE_URL: "https://ntfy.sh"
(as suggested)
in the iOS you also have to set the base URL to
"https://ntfy.sh"
unless I get this totally wrong.
@emiwirs commented on GitHub (Nov 29, 2023):
I read it the same as you do, but for me it isn’t a requirement…
Some more test results:
There is some activation/enabling/registration happening, as once it is working, it continues to work: 1 iOS device I didn’t change/touch during the testing and that one continues to receive all notifications during testing. I will also check over a longer period whether it is related to some dns caching…
So, at this moment, I am sure it is related to the following 4 URL’s (all of them or any combination of them):
@wunter8 commented on GitHub (Nov 29, 2023):
Where did you see that? The default server in iOS needs to exactly match
base-urlon the server, notupstream-base-url. Make sure they both havehttps://and that neither has a trailing/(See https://docs.ntfy.sh/known-issues/#ios-app-not-receiving-notifications-anymore)
@mikekuzak commented on GitHub (Nov 29, 2023):
@wunter8
https://github.com/binwiederhier/ntfy/issues/880#issuecomment-1828949447
@wunter8 commented on GitHub (Nov 29, 2023):
Got it. I'm pretty sure that was a typo. The link I included to the docs says what I said:
@roemer2201 commented on GitHub (Nov 30, 2023):
I had the same issue as OP, but thanks to this thread, I was able to solve it: My base-url was
http://ntfy.example.com(note the missing "s" at "http"). Other set options arelisten-http: "localhost:8080",behind-proxy: true. As you can see, my server is configured to run on localhost:8080 without https. Now my apache2 is configured as virtual host for myntfy.example.com, listening on port 80 and 443, forwarding requests from 80 to 443 (I got this configuration from the documentation) and talking to the service overlocalhost:8080.Leaving the "s" in my base-url made the server work basically, but no iOS push was working. So I tried adding the "s" to the base-url and voila ... iOS push is working!
@omgprod commented on GitHub (Dec 14, 2023):
Hello there ! can you share your conf files : docker-compose.yml, server.yml and nginx conf file ?
@roemer2201 commented on GitHub (Dec 14, 2023):
I'm running it on a Linux VPS, no docker or anything, here are the confs used:
@omgprod commented on GitHub (Dec 14, 2023):
Thank’s @roemer2201 I whish this will helps, I found my way just on turning my firewall rules down from the web hosting service, I have to dig it more for the moment. Hope this can helps. If requested I can share my conf I’m using docker compose, nginx.
I supposed the Poll request getting blocked ..
@bryanperez43 commented on GitHub (Apr 2, 2024):
How i get Life Notifications
on IOS ntfy app
NTFY_BASE_URL