mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #855] Not receiving notifications #603
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#603
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 @Mr-KayJayDee on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/855
🐞 Describe the bug
I am not receiving any notifications on my phone unless i go to the topic page and reload. The topic stays at reconnecting.
💻 Components impacted
Android and/or self hosted server.
💡 Screenshots and/or logs
Server details :
Hosted on docker with nginx on parent machine. (Nginx outside of docker)
Linux bot 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
🔮 Additional context
Notification settings
@LespiletteMaxime commented on GitHub (Sep 1, 2023):
Same here, I have to refresh to get the notification
@DEPGames-official commented on GitHub (Sep 1, 2023):
Same here
@wunter8 commented on GitHub (Sep 1, 2023):
Unfortunately, the iOS app is very buggy. The PWA will give you a much better experience: https://docs.ntfy.sh/subscribe/pwa/If you're self-hosting, follow these instructions to set up web push: https://docs.ntfy.sh/config/#web-pushSorry. I didn't realize this is an Android thread. If you're having issues, we're happy to help on Discord or Matrix
@xiezhenxiang commented on GitHub (Sep 7, 2023):
Me too, I have already found the problem myself. It's not a software issue, it's a problem with the phone itself. The phone will automatically kill background processes. It would be even better to set it not to let the phone kill background processes. Different phones have different settings, and I hope it can help you.
@binwiederhier commented on GitHub (Sep 24, 2023):
@Mr-KayJayDee Are you still experiencing issues? I suggest that you enable debugging on Android and server side to get a clear understanding of what's happening. Details: https://docs.ntfy.sh/troubleshooting/
For now I will close this issue, but feel free to keep commenting.
@arsanysamuel commented on GitHub (Oct 5, 2023):
I have the same issue with the android app, I'm self-hosting a server and if I disconnect and reconnect the phone or server it keeps reconnecting as shown in the screenshot above, I can't even find a way to refresh it so I have to remove the topic from the phone app and re-add it again.
@jimmykirk commented on GitHub (Oct 6, 2023):
I too am experiencing this issue.. I can go to my subscribed topics and drag down to refresh and I will get notifications, but it kind of defeats the whole purpose of push notifications.|
Battery optimization is off and I'm using websockets. Not sure why this was closed since it's definitely an issue.
edit: I found the issue on my side:
The key things were the bottom 3 settings
@LespiletteMaxime commented on GitHub (Oct 6, 2023):
After few test I found the issue on my side, it was because I refused http and made all https.
As soon as I allowed http refresh has worked on android device.
my 2c
@Mr-KayJayDee commented on GitHub (Oct 6, 2023):
@binwiederhier Still facing this issue:
Tried to reinstall by APT
Here is the sever.yml config: https://hastebin.skyra.pw/abeyicinat.yaml
Event after restarting using
systemctl restart ntfyi still got no trace logs: https://hastebin.skyra.pw/unuzoqilud.phpHere is my URL: https://notify.killiandalcin.fr
Here is my nginx config for this site: https://hastebin.skyra.pw/neyuhoyezo.nginx
Here is http-to-https.conf: https://hastebin.skyra.pw/cazisolusu.nginx
Here is ssl.conf: https://hastebin.skyra.pw/wululesani.nginx
Here is nginx.conf: https://hastebin.skyra.pw/yotalojuqo.nginx
ntfy.service: https://hastebin.skyra.pw/efamagolic.ini
Android logs: https://nopaste.net/aJHfKqhYoh
Tell me if you need more details 🤔
Cannot seem to successfully enable full verbose logs... Out of solutions here...
@jimmykirk commented on GitHub (Oct 6, 2023):
Try this:
This was the issue on my side.
The key things were the bottom 3 settings:
@Mr-KayJayDee commented on GitHub (Oct 6, 2023):
Thanks @jimmykirk i'll try, did not see your edit sorry 😅
@Mr-KayJayDee commented on GitHub (Oct 6, 2023):
Sadly this did not work...
@biran4454 commented on GitHub (Oct 19, 2023):
+1
Fdroid app, docker ntfy through cloudflare tunnel. Notifications received on pull-down refresh, test notifications sent to the server fine.
Edit: same issue with the apk on Windows subsystem for Android, however setting the mode to websockets fixes the issue.
@micahmo commented on GitHub (Apr 26, 2024):
This was my problem. Disabling Cloudflare Tunnels made things work!
@pycanis commented on GitHub (Aug 30, 2024):
Ran into the same issue, reinstalled the app and it's working again.
@applesoff commented on GitHub (Nov 1, 2024):
I have been getting notifications on my self-hosted server for the last 2 days without issues. today all notifications stopped work. no change to the config or server settings. The server does not receive notifications and the android app does not connect to the server. no errors in logs. i have it running on https through cloudflare.
services:
ntfy:
image: binwiederhier/ntfy
container_name: ntfy
command:
- serve
user: 1000:1000 # optional: replace with your own user/group or uid/gid
volumes:
- /home/ntfy:/var/lib/ntfy
- /home/ntfy/server.yml:/etc/ntfy/server.yml
ports:
- 8689:80
restart: unless-stopped
server.yml
base-url: "http://ntfy.example.com"
cache-file: "/var/lib/ntfy/cache.db"
attachment-cache-dir: "/var/lib/ntfy/attachments"
any idea why it suddenly stopped after working?
@biran4454 commented on GitHub (Nov 1, 2024):
I wonder if maybe it's cloudflare, because the app will presumably poll the server pretty often, perhaps cf just blocks it after a while, and maybe pulldown refresh is different?
Either way, it's worth trying it through the local network and tailscale to try to narrow down the issue a bit more.
@applesoff commented on GitHub (Nov 1, 2024):
that was it. works fine on local with wireguard vpn
@DeepanshKhurana commented on GitHub (Dec 19, 2025):
@jimmykirk Thanks for the gotcha! It fixed my issue!