binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
17.23k stars 662 forks source link

iOS notifications not working from the public/official ntfy.sh platform #1003

Open andreizy opened 5 months ago

andreizy commented 5 months ago

:lady_beetle: Describe the bug I don't receive any iOS notifications from ntfy.sh on the iOS app. Notifications are turned on for the app in the iPhone's settings. Not using any self-hosted server; this is from the public/official ntfy.sh platform. The notifications come in just fine on the web application (can't test on Android). The only way to see the latest notifications is to manually refresh the topic on iOS. This won't generate the actual notifications on iOS but it will show you all the new notifications you've missed in the ntfy.sh app.

:computer: Components impacted iOS version 17.2 iPhone 14 Pro Max iOS app version 1.3 (4) ntfy.sh server: public/official one

:bulb: Screenshots and/or logs

:crystal_ball: Additional context Notifications are sent to token-protected topics and are being received just fine on the web app, just not on iOS. Paid subscriber of the public/official ntfy.sh platform. Even tried reinstalling the app completely and it's still the same issue.

Hopefully, this can be looked into and fixed soon. Thank you.

JustJoostNL commented 5 months ago

Same issue here unfortunately

thunderwin commented 5 months ago

me too, ios not working

TheRealFu commented 5 months ago

I just subscribed to a month of Pro and repo the same issue. Messages sent to public (non-reserved) topics show up instantly on the iPhone app and show notifications. Messages sent to reserved topics do not cause a notification on the iPhone app and I have to manually refresh the topic to get the message. I haven't waited more than a few minutes to see if they come in (I'm only willing to pay for timely notifications). I have unsubscribed to the topic on the iPhone and re-subscribed and the issue still persists.

TheRealFu commented 5 months ago

I just installed the Testflight ntfy app on iOS, unsubscribed to the topic and resubscribed, but the issue still reproduces - no notification if the app is not active, and have to manually pull down to refresh if the app is active.

another commented 5 months ago

Similar issue as above.

Not sure if stream or WebSocket subscribers has anything to do with push but this TRACE appears immediately prior to the Publishing poll request DEBUG line:

2024/01/24 17:31:14 TRACE No stream or WebSocket subscribers, not forwarding (message_body_size=11, message_event=message, message_id=IOrLHBmc3de0, message_sender=69.x.x.x, message_time=1706135474, tag=publish, topic=test0, visitor_auth_limiter_limit=0.016666666666666666, visitor_auth_limiter_tokens=30, visitor_id=ip:69.x.x.x, visitor_ip=69.x.x.x, visitor_messages=1, visitor_messages_limit=17280, visitor_messages_remaining=17279, visitor_request_limiter_limit=0.2, visitor_request_limiter_tokens=59.0006235826, visitor_seen=2024-01-24T17:31:14.141-05:00)

2024/01/24 17:31:14 DEBUG Publishing poll request to https://ntfy.sh/f93a75538f80c87718087bfa84d45af409257b3687a579eef201171f5303dbe4 (message_body_size=11, message_event=message, message_id=IOrLHBmc3de0, message_sender=69.x.x.x, message_time=1706135474, topic=test0, visitor_auth_limiter_limit=0.016666666666666666, visitor_auth_limiter_tokens=30, visitor_id=ip:69.x.x.x, visitor_ip=69.x.x.x, visitor_messages=1, visitor_messages_limit=17280, visitor_messages_remaining=17279, visitor_request_limiter_limit=0.2, visitor_request_limiter_tokens=59.0006466348, visitor_seen=2024-01-24T17:31:14.141-05:00)

The TRACE shows the topic has 0 subscribers?

2024/01/24 17:31:23 TRACE - topic test0: 0 subscribers, accessed 2024-01-24T17:31:14.145-05:00 (tag=manager, topic=test0, topic_last_access=2024-01-24T17:31:14.145-05:00, topic_subscribers=0)

TheRealFu commented 5 months ago

Notifications are working for me for reserved topics on the PWA (ntfy.sh/app) on the iPhone, so I have a work-around. Hopefully PWA notification subscriptions don't timeout or are in any other way second-class to "real app" notifications.

lostfocus commented 5 months ago

Same here

thokich commented 5 months ago

2024/02/03 13:11:12 WARN Unable to publish poll request (error=Post "https://ntfy.sh/418f6bb73dc2007743ef710911bd56f97e4e60163617aff03d4d1ed786a5f5b2": context deadline exceeded (Client.Timeout exceeded while awaiting headers), message_body_size=126, message_event=message, message_id=sd56zq0VC6Lf, message_sender=xxxx, message_time=1706965862, message_user=xxxxxx, topic=monitoring, user_id=xxx, user_name=monitor, visitor_auth_limiter_limit=0.016666666666666666, visitor_auth_limiter_tokens=30, visitor_id=ip:xxx, visitor_ip=xxx, visitor_messages=2, visitor_messages_limit=17280, visitor_messages_remaining=17278, visitor_request_limiter_limit=0.2, visitor_request_limiter_tokens=60, visitor_seen=2024-02-03T13:11:02.504Z)same problem, i have open a issues to

A direct message with ntfy.sh over command line curl works and send a notification to iOS. Sample in Doc : I replace the parameters with my own an run the statement on the computer where the docker container is running and it works. In the docker container i have no curl. I think the interface between application and ntfy.sh is the problem.
curl -X POST -H "X-Poll-ID: s4PdJozxM8na" https://ntfy.sh/6de73be8dfb7d69e32fb2c00c23fe7adbd8b5504406e3068c273aa24cef4055b {"id":"4HsClFEuCIcs","time":1654087955,"event":"poll_request","topic":"6de73be8dfb7d69e32fb2c00c23fe7adbd8b5504406e3068c273aa24cef4055b","message":"New message","poll_id":"s4PdJozxM8na"}

I use the binwiederhier/ntfy:latest docker image for an arm64 enviroment. The logical network enviroment is application_X send ip-intern:8880->ntfy(docker 80->8880)/ntfy.sh<- pfsense NAT ip-intern:8880<-ip-internet:8880<-nginx ip-internet:8880<-https://ip-proxy-internet<-phone

Version: ntfy 2.8.0 (aaa4976), runtime go1.21.3, built at 2023-11-19T21:51:43Z Copyright (C) 2022 Philipp C. Heckel, licensed under Apache License 2.0 & GPLv2

binwiederhier commented 5 months ago

I'm going to try to take a look later this week.

rafazundt commented 4 months ago

I'm also getting this error, but I'm running the docker container. Server is continuously getting down.

isshenye commented 4 months ago

me too, ios not working

skiddex25 commented 3 months ago

Any news on this? Running Docker Server and also getting the "error publishing poll request"-error.

thokich commented 3 months ago

Any News here, my error is not resolve. I have install the :lates Image. HELP please

thokich commented 3 months ago

I have solved my problem and works fine The Docker Container with an own Network needs in my Cloud Hoster Environment (Hetzner) the individual network setting "com.docker.network.driver.mtu=1450".

andreizy commented 3 months ago

The public/official ntfy.sh iOS app still does not receive notifications from the public/official ntfy.sh platform, which is a pretty big deterrent to paying the monthly subscription.

skiddex25 commented 3 months ago

I have solved my problem and works fine

The Docker Container with an own Network needs in my Cloud Hoster Environment (Hetzner) the individual network setting "com.docker.network.driver.mtu=1450".

Solved it for me. Had this issue with other containers but didn't consider it with this one. @thokich Thank you very very much.