ntfy icon indicating copy to clipboard operation
ntfy copied to clipboard

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

Open andreizy opened this issue 5 months ago • 16 comments

: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.

andreizy avatar Jan 15 '24 21:01 andreizy

Same issue here unfortunately

JustJoostNL avatar Jan 18 '24 07:01 JustJoostNL

me too, ios not working

thunderwin avatar Jan 19 '24 07:01 thunderwin

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 avatar Jan 24 '24 04:01 TheRealFu

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.

TheRealFu avatar Jan 24 '24 04:01 TheRealFu

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)

another avatar Jan 24 '24 23:01 another

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.

TheRealFu avatar Jan 29 '24 18:01 TheRealFu

Same here

lostfocus avatar Jan 31 '24 10:01 lostfocus

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

thokich avatar Feb 03 '24 13:02 thokich

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

binwiederhier avatar Feb 03 '24 13:02 binwiederhier

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

rafazundt avatar Feb 26 '24 20:02 rafazundt

me too, ios not working

isshenye avatar Mar 07 '24 02:03 isshenye

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

skiddex25 avatar Mar 07 '24 13:03 skiddex25

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

thokich avatar Mar 26 '24 23:03 thokich

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".

thokich avatar Mar 27 '24 14:03 thokich

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.

andreizy avatar Mar 27 '24 16:03 andreizy

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.

skiddex25 avatar Mar 27 '24 21:03 skiddex25