[GH-ISSUE #757] Notifications for android sometimes get delayed several minutes #545

Closed
opened 2026-05-07 00:25:17 +02:00 by BreizhHardware · 6 comments

Originally created by @happysalada on GitHub (May 31, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/757

🐞 Describe the bug
Sometimes a notification sent will only be received on the android app several minute later.

💻 Components impacted
ntfy server, Android app

💡 Screenshots and/or logs
I haven't seen anything in the logs, maybe I should just increase the verbosity

🔮 Additional context
I'm not sure how to get additional context here, but happy to try anything.

Originally created by @happysalada on GitHub (May 31, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/757 :lady_beetle: **Describe the bug** Sometimes a notification sent will only be received on the android app several minute later. :computer: **Components impacted** ntfy server, Android app :bulb: **Screenshots and/or logs** I haven't seen anything in the logs, maybe I should just increase the verbosity :crystal_ball: **Additional context** I'm not sure how to get additional context here, but happy to try anything.
BreizhHardware 2026-05-07 00:25:17 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@binwiederhier commented on GitHub (May 31, 2023):

You're going to need to get some logs (mostly Android probably). Without logs, I cannot help.

Are you using ntfy.sh or selfhosted?

If you are using ntfy.sh, are you using "instant delivery"?

In your Android app, are subscriptions showing "connecting ..."? If they do, you are not actually connected to your server.

<!-- gh-comment-id:1570867451 --> @binwiederhier commented on GitHub (May 31, 2023): You're going to need to get some logs (mostly Android probably). Without logs, I cannot help. Are you using ntfy.sh or selfhosted? If you are using ntfy.sh, are you using "instant delivery"? In your Android app, are subscriptions showing "connecting ..."? If they do, you are not actually connected to your server.
Author
Owner

@happysalada commented on GitHub (May 31, 2023):

Self hosted, and im connected with the websocket.
Im sure im connected because im receiving 90% of the notifications instantly. Its just once in a while one takes several minutes.
Ill have a look at the logs and will paste them here next time this happens.
Thank you for this amazing software !

<!-- gh-comment-id:1571015873 --> @happysalada commented on GitHub (May 31, 2023): Self hosted, and im connected with the websocket. Im sure im connected because im receiving 90% of the notifications instantly. Its just once in a while one takes several minutes. Ill have a look at the logs and will paste them here next time this happens. Thank you for this amazing software !
Author
Owner

@binwiederhier commented on GitHub (May 31, 2023):

If it's only every now and then it's likely Android killing the connection. It just happens. There is nothing you can do about it except disable battery optimization for ntfy. If it is this, you'll see a software abort exception in the logs. It's quite normal. But some manufacturers are worse than others.

Also check: https://dontkillmyapp.com/

<!-- gh-comment-id:1571035507 --> @binwiederhier commented on GitHub (May 31, 2023): If it's only every now and then it's likely Android killing the connection. It just happens. There is nothing you can do about it except disable battery optimization for ntfy. If it is this, you'll see a software abort exception in the logs. It's quite normal. But some manufacturers are worse than others. Also check: https://dontkillmyapp.com/
Author
Owner

@happysalada commented on GitHub (Jun 1, 2023):

Ive disabled battery optimization for the app though (which your very helpful onboarding guide helped )

<!-- gh-comment-id:1571113893 --> @happysalada commented on GitHub (Jun 1, 2023): Ive disabled battery optimization for the app though (which your very helpful onboarding guide helped )
Author
Owner

@binwiederhier commented on GitHub (Jun 12, 2023):

Without more information, I unfortunately cannot help. Feel free to ask on Discord/Matrix/Lemmy.

<!-- gh-comment-id:1587177776 --> @binwiederhier commented on GitHub (Jun 12, 2023): Without more information, I unfortunately cannot help. Feel free to ask on Discord/Matrix/Lemmy.
Author
Owner

@happysalada commented on GitHub (Jun 12, 2023):

No worries at all, it hasnt happened since last time, next time ill only reopen if i have more info.

<!-- gh-comment-id:1587779445 --> @happysalada commented on GitHub (Jun 12, 2023): No worries at all, it hasnt happened since last time, next time ill only reopen if i have more info.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#545
No description provided.