mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #904] No Auto Polling of NTFY Alerts (Self hosted) #637
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#637
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 @ArMaTeC on GitHub (Oct 1, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/904
🐞 No Auto Polling of NTFY Alerts
I am writing to bring to your attention a critical issue we are currently experiencing with the NTFY alert system, specifically related to auto-polling and server configuration.
Currently, the system exhibits persistent challenges with auto-polling NTFY alerts. In socket mode, there is a continuous reconnection issue, while in JSON mode, no automatic notifications are displayed. Manual refresh is required to obtain any updates.
Upon conducting a thorough investigation, I performed a test using ntfy.sh alerts, which functioned seamlessly in the Android application, providing instantaneous updates. This suggests that the problem may be rooted in the server setup.
💻 Components impacted
The affected components include the NTFY server and the Android application.
💡 Screenshots and/or logs

Attached is a screenshot illustrating the perpetual spinning of the section next to the topic on the self-hosted GUI, indicative of the issue. Please refer to the following link for the image:
We urgently request your assistance in investigating and resolving this matter promptly. Your expertise in addressing this technical challenge is invaluable, and we appreciate your swift attention to this issue.
Should you require any additional information or assistance, please do not hesitate to reach out. Your prompt action on this matter is highly appreciated.
Thank you for your time and assistance.
@drowolath commented on GitHub (Oct 11, 2023):
Hi,
I don't know if you're running NTFY behind a proxy (such as nginx), but in my case, to make the websocket mode work, I had to add the following to my
location /block:proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";Once I did so, there's no more perpetual spinning on the self-hosted GUI, and notifications are instantly shown on my Android device
@binwiederhier commented on GitHub (Nov 6, 2023):
Correct, be sure to enable WebSockets. See https://docs.ntfy.sh/config/#nginxapache2caddy for more detail.
For 1:1 help with your setup, please ask on our Discord or Matrix chat.