mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #556] android, no google, no notifications without manual refresh. #422
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#422
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 @japtain-cack on GitHub (Dec 24, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/556
I'm no longer receiving background notifications when the phone is asleep. I have to open the app and manually refresh. I'm using element, with ntfy set as the notification backend, and I have grafana alerts going to ntfy. Grafana goes to a cloud function which parses the alert, then forwards that to the ntfy server (no issues recorded in the cloud function logs).
Web UI and desktop notifications are working 100%. Only the android app is having issues, but only during sleep mode. I have ensured all required permissions and notifications are enabled, battery optimization is unrestricted. I should also mention, I'm using ntfy behind HAProxy using json http, not websockets. I haven't taken the time to set up HAProxy for websockets yet, but plan to, especially if it might help with this issue.
This is all running on prem in a HA k3s cluster with openfaas for cloud functions, vault + external-secrets operator for secrets, longhorn for storage, and traefik for ingress.
Thank you for the amazing app, and making self hosted push notifications possible. You're doing the Lords work 🤣.
Cloud function repo
https://gitlab.com/japtain_cack/function_grafantfy
ntfy kustomize
ntfy android app logs
ntfy.log
ntfy server logs
@binwiederhier commented on GitHub (Mar 3, 2023):
I hope you got that figured out. Sorry I didn't respond earlier. I assume this is working now or you gave up. For troubleshooting, it's best to join the Discord or Matrix room.
Closing this for now.
@japtain-cack commented on GitHub (Mar 5, 2023):
The fix was, wait longer. It seems it can take anywhere from 5 to 30 mins for messages to come in. I've disabled all battery restrictions on ntfy, but that doesn't seem to affect anything. Must be an android thing.
@binwiederhier commented on GitHub (Mar 6, 2023):
On Android it should not take that long if instant delivery is turned on. Weird that you don't see stack traces in the Android logs...
@japtain-cack commented on GitHub (Mar 13, 2023):
I seem to have forgotten to mention, I'm running LineageOS 19. Not sure if that makes a difference, but I don't have any google services installed, not even microG. I've kind of gotten used to my notifications in general not being instant, even SMS takes the same amount of time to notify if the phone is asleep. So probably OS related since, after some testing, it seems to be more than ntfy that is affected.