mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1709] [ntfy Android 1.25.0] Background service suddenly quiting for devices without battery optimization exemption #1187
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#1187
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 @isaitgirl on GitHub (Apr 18, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1709
🐞 Describe the bug
I always had ntfy running in background fine, getting notifications fine. In the last few days after an update, it's suddenly and silently quitting and I'm not getting notifications.
💻 Components impacted
Android App, 1.25 play.
💡 Screenshots and/or logs
I had enabled logs but it hadn't persisted , so I just enabled again and it's the following
This is a log of the ntfy Android app. The log shows up to 1,000 entries.
Device info:
ntfy: 1.25.0 (play)
OS: 5.10.236-android12-9-00020-gf997514b333d-ab13743839
Android: 15 (SDK 35)
Model: bogota
Product: bogota_gn
--
Settings:
{
"autoDeleteSeconds": 2592000,
"autoDownloadMaxSize": 1048576,
"broadcastEnabled": true,
"connectionAlertSeconds": 0,
"connectionProtocol": "jsonhttp",
"darkMode": -1,
"defaultBaseUrl": "https://ntfy.sh",
"dynamicColors": false,
"lastSharedTopics": [],
"minPriority": 1,
"mutedUntil": 0,
"recordLogs": true
}
Logs
1772234935262 2026-02-27 20:28:55.262 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772234935846 2026-02-27 20:28:55.846 D NtfyPollWorker Finished polling for new notifications
1772234982281 2026-02-27 20:29:42.281 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235042286 2026-02-27 20:30:42.286 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235102292 2026-02-27 20:31:42.292 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235162299 2026-02-27 20:32:42.299 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235222310 2026-02-27 20:33:42.310 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235282317 2026-02-27 20:34:42.317 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235342324 2026-02-27 20:35:42.324 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235402328 2026-02-27 20:36:42.328 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235462331 2026-02-27 20:37:42.331 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235522337 2026-02-27 20:38:42.337 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235582343 2026-02-27 20:39:42.343 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235642348 2026-02-27 20:40:42.348 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235702356 2026-02-27 20:41:42.356 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235762363 2026-02-27 20:42:42.363 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235814143 2026-02-27 20:43:34.143 D NtfyFirebase Keepalive received, sending auto restart broadcast for foregrounds service
1772235814173 2026-02-27 20:43:34.173 D NtfySubscriberService AutoRestartReceiver: onReceive called
1772235814173 2026-02-27 20:43:34.173 D NtfySubscriberMgr Enqueuing work to refresh subscriber service
1772235814240 2026-02-27 20:43:34.240 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: 2c432687-c3b8-4476-84fa-db4407148c0e)
1772235814247 2026-02-27 20:43:34.247 D NtfySubscriberService onStartCommand executed with startId: 50
1772235814247 2026-02-27 20:43:34.247 D NtfySubscriberService using an intent with action START
1772235814274 2026-02-27 20:43:34.274 D NtfySubscriberService Refreshing subscriptions
1772235814275 2026-02-27 20:43:34.275 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772235814275 2026-02-27 20:43:34.275 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772235814276 2026-02-27 20:43:34.276 D NtfySubscriberService - New connections: []
1772235814276 2026-02-27 20:43:34.276 D NtfySubscriberService - Obsolete connections: []
1772235814276 2026-02-27 20:43:34.276 D NtfySubscriberService - Match? --> true
1772235814276 2026-02-27 20:43:34.276 D NtfySubscriberService - No action required.
1772235822373 2026-02-27 20:43:42.373 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235882379 2026-02-27 20:44:42.379 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772235942384 2026-02-27 20:45:42.384 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236002389 2026-02-27 20:46:42.389 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236062393 2026-02-27 20:47:42.393 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236122398 2026-02-27 20:48:42.398 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236182399 2026-02-27 20:49:42.399 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236242403 2026-02-27 20:50:42.403 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236302411 2026-02-27 20:51:42.411 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236362417 2026-02-27 20:52:42.417 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236422424 2026-02-27 20:53:42.424 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236482428 2026-02-27 20:54:42.428 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236542437 2026-02-27 20:55:42.437 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236602441 2026-02-27 20:56:42.441 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236662445 2026-02-27 20:57:42.445 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236722451 2026-02-27 20:58:42.451 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236782458 2026-02-27 20:59:42.458 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236842465 2026-02-27 21:00:42.465 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772236869880 2026-02-27 21:01:09.880 D NtfyDeleteWorker Deleting icons for deleted notifications
1772236869887 2026-02-27 21:01:09.887 D NtfyDeleteWorker Deleting attachments for deleted notifications
1772236869890 2026-02-27 21:01:09.890 D NtfyDeleteWorker Deleting expired notifications
1772236869900 2026-02-27 21:01:09.900 D NtfyDeleteWorker [push.isacloud.cc/isacloud-alerts] Marking notifications older than 1769644869 as deleted
1772236869912 2026-02-27 21:01:09.912 D NtfyDeleteWorker [push.isacloud.cc/isacloud-alerts] Hard deleting notifications older than 1769644869
1772236869919 2026-02-27 21:01:09.919 D NtfyDeleteWorker [ntfy.sh/upwBvX4qpCPhRx] Marking notifications older than 1769644869 as deleted
1772236869924 2026-02-27 21:01:09.924 D NtfyDeleteWorker [ntfy.sh/upwBvX4qpCPhRx] Hard deleting notifications older than 1769644869
1772236947752 2026-02-27 21:02:27.752 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772237520946 2026-02-27 21:12:00.946 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772237733709 2026-02-27 21:15:33.709 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772237793715 2026-02-27 21:16:33.715 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772237853722 2026-02-27 21:17:33.722 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772237913729 2026-02-27 21:18:33.729 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772237973735 2026-02-27 21:19:33.735 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238033737 2026-02-27 21:20:33.737 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238093742 2026-02-27 21:21:33.742 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238153747 2026-02-27 21:22:33.747 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238213751 2026-02-27 21:23:33.751 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238273754 2026-02-27 21:24:33.754 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238333757 2026-02-27 21:25:33.757 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238393763 2026-02-27 21:26:33.763 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238453766 2026-02-27 21:27:33.766 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772238500691 2026-02-27 21:28:20.691 D NtfySubscriberService onStartCommand executed with startId: 51
1772238500691 2026-02-27 21:28:20.691 D NtfySubscriberService using an intent with action null
1772238500692 2026-02-27 21:28:20.692 W NtfySubscriberService This should never happen. No action in the received intent
1772238538641 2026-02-27 21:28:58.641 D NtfyPollWorker Polling for new notifications
1772238538686 2026-02-27 21:28:58.686 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=eAb5cj16QUXf
1772238540789 2026-02-27 21:29:00.789 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772238542253 2026-02-27 21:29:02.253 D NtfyPollWorker Finished polling for new notifications
1772240401649 2026-02-27 22:00:01.649 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: 302b6a0a-14a3-4bf2-b40f-3558c1c34a5e)
1772240401667 2026-02-27 22:00:01.667 D NtfySubscriberService using an intent with action START
1772240401667 2026-02-27 22:00:01.667 D NtfySubscriberService onStartCommand executed with startId: 52
1772240401721 2026-02-27 22:00:01.721 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772240401722 2026-02-27 22:00:01.722 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772240401722 2026-02-27 22:00:01.722 D NtfySubscriberService - New connections: []
1772240401722 2026-02-27 22:00:01.722 D NtfySubscriberService Refreshing subscriptions
1772240401724 2026-02-27 22:00:01.724 D NtfySubscriberService - Obsolete connections: []
1772240401728 2026-02-27 22:00:01.728 D NtfySubscriberService - Match? --> true
1772240401731 2026-02-27 22:00:01.731 D NtfySubscriberService - No action required.
1772240617008 2026-02-27 22:03:37.008 D NtfySubscriberService [https://push.isacloud.cc/isacloud-alerts] Received notification: Notification(id=ANYuHZvdfahZ, subscriptionId=6261309, timestamp=1772240617, sequenceId=ANYuHZvdfahZ, title=XMPP @ bolha.one Down [Uptime-Kuma], message=Connection failed, contentType=, encoding=, notificationId=1246012675, priority=3, tags=red_circle,xmpp, click=, icon=null, actions=null, attachment=null, deleted=false, event=message)
1772240617037 2026-02-27 22:03:37.037 D NtfyNotifDispatch Dispatching Notification(id=ANYuHZvdfahZ, subscriptionId=6261309, timestamp=1772240617, sequenceId=ANYuHZvdfahZ, title=XMPP @ bolha.one Down [Uptime-Kuma], message=Connection failed, contentType=, encoding=, notificationId=1246012675, priority=3, tags=red_circle,xmpp, click=, icon=null, actions=null, attachment=null, deleted=false, event=message) for subscription Subscription(id=6261309, baseUrl=https://push.isacloud.cc, topic=isacloud-alerts, instant=true, mutedUntil=0, minPriority=0, autoDelete=-1, insistent=-1, lastNotificationId=eAb5cj16QUXf, icon=null, upAppId=null, upConnectorToken=null, displayName=null, dedicatedChannels=false, totalCount=199, newCount=0, lastActive=1772230523, connectionDetails=ConnectionDetails(state=CONNECTED, error=null, nextRetryTime=0))
1772240617037 2026-02-27 22:03:37.037 D NtfyNotifService Displaying notification Notification(id=ANYuHZvdfahZ, subscriptionId=6261309, timestamp=1772240617, sequenceId=ANYuHZvdfahZ, title=XMPP @ bolha.one Down [Uptime-Kuma], message=Connection failed, contentType=, encoding=, notificationId=1246012675, priority=3, tags=red_circle,xmpp, click=, icon=null, actions=null, attachment=null, deleted=false, event=message)
1772240617075 2026-02-27 22:03:37.075 D NtfyBroadcastService Sending message intent broadcast: io.heckel.ntfy.MESSAGE_RECEIVED with extras Bundle[{base_url=https://push.isacloud.cc, message_bytes=[67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 32, 102, 97, 105, 108, 101, 100], message_encoding=, priority=3, tags_map=1=red_circle,2=xmpp, attachment_name=, attachment_size=0, attachment_type=, attachment_expires=0, id=ANYuHZvdfahZ, tags=red_circle,xmpp, time=1772240617, click=, muted=false, title=XMPP @ bolha.one Down [Uptime-Kuma], topic=isacloud-alerts, attachment_url=, content_type=, message=Connection failed, muted_str=false}]
1772240792188 2026-02-27 22:06:32.188 D NtfySubscriberService [https://push.isacloud.cc/isacloud-alerts] Received notification: Notification(id=nFH9nhfIz13U, subscriptionId=6261309, timestamp=1772240792, sequenceId=nFH9nhfIz13U, title=XMPP @ bolha.one Up [Uptime-Kuma], message=152 ms, contentType=, encoding=, notificationId=934336588, priority=3, tags=green_circle,xmpp, click=, icon=null, actions=null, attachment=null, deleted=false, event=message)
1772240792209 2026-02-27 22:06:32.209 D NtfyNotifDispatch Dispatching Notification(id=nFH9nhfIz13U, subscriptionId=6261309, timestamp=1772240792, sequenceId=nFH9nhfIz13U, title=XMPP @ bolha.one Up [Uptime-Kuma], message=152 ms, contentType=, encoding=, notificationId=934336588, priority=3, tags=green_circle,xmpp, click=, icon=null, actions=null, attachment=null, deleted=false, event=message) for subscription Subscription(id=6261309, baseUrl=https://push.isacloud.cc, topic=isacloud-alerts, instant=true, mutedUntil=0, minPriority=0, autoDelete=-1, insistent=-1, lastNotificationId=ANYuHZvdfahZ, icon=null, upAppId=null, upConnectorToken=null, displayName=null, dedicatedChannels=false, totalCount=200, newCount=1, lastActive=1772240617, connectionDetails=ConnectionDetails(state=CONNECTED, error=null, nextRetryTime=0))
1772240792210 2026-02-27 22:06:32.210 D NtfyNotifService Displaying notification Notification(id=nFH9nhfIz13U, subscriptionId=6261309, timestamp=1772240792, sequenceId=nFH9nhfIz13U, title=XMPP @ bolha.one Up [Uptime-Kuma], message=152 ms, contentType=, encoding=, notificationId=934336588, priority=3, tags=green_circle,xmpp, click=, icon=null, actions=null, attachment=null, deleted=false, event=message)
1772240792230 2026-02-27 22:06:32.230 D NtfyBroadcastService Sending message intent broadcast: io.heckel.ntfy.MESSAGE_RECEIVED with extras Bundle[{base_url=https://push.isacloud.cc, message_bytes=[49, 53, 50, 32, 109, 115], message_encoding=, priority=3, tags_map=1=green_circle,2=xmpp, attachment_name=, attachment_size=0, attachment_type=, attachment_expires=0, id=nFH9nhfIz13U, tags=green_circle,xmpp, time=1772240792, click=, muted=false, title=XMPP @ bolha.one Up [Uptime-Kuma], topic=isacloud-alerts, attachment_url=, content_type=, message=152 ms, muted_str=false}]
1772242217494 2026-02-27 22:30:17.494 D NtfyPollWorker Polling for new notifications
1772242217500 2026-02-27 22:30:17.500 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
1772242219132 2026-02-27 22:30:19.132 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772242220187 2026-02-27 22:30:20.187 D NtfyPollWorker Finished polling for new notifications
1772245984165 2026-02-27 23:33:04.165 D NtfyPollWorker Polling for new notifications
1772245984231 2026-02-27 23:33:04.231 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
1772245985638 2026-02-27 23:33:05.638 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772245986502 2026-02-27 23:33:06.502 D NtfyPollWorker Finished polling for new notifications
1772246646240 2026-02-27 23:44:06.240 D NtfyFirebase Keepalive received, sending auto restart broadcast for foregrounds service
1772246646277 2026-02-27 23:44:06.277 D NtfySubscriberMgr Enqueuing work to refresh subscriber service
1772246646277 2026-02-27 23:44:06.277 D NtfySubscriberService AutoRestartReceiver: onReceive called
1772246646348 2026-02-27 23:44:06.348 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: c4cd0344-b737-445c-aca4-85d389b09b9a)
1772246646354 2026-02-27 23:44:06.354 D NtfySubscriberService onStartCommand executed with startId: 53
1772246646355 2026-02-27 23:44:06.355 D NtfySubscriberService using an intent with action START
1772246646382 2026-02-27 23:44:06.382 D NtfySubscriberService Refreshing subscriptions
1772246646383 2026-02-27 23:44:06.383 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772246646384 2026-02-27 23:44:06.384 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772246646387 2026-02-27 23:44:06.387 D NtfySubscriberService - New connections: []
1772246646387 2026-02-27 23:44:06.387 D NtfySubscriberService - Obsolete connections: []
1772246646388 2026-02-27 23:44:06.388 D NtfySubscriberService - No action required.
1772246646388 2026-02-27 23:44:06.388 D NtfySubscriberService - Match? --> true
1772249721598 2026-02-28 00:35:21.598 D NtfyPollWorker Polling for new notifications
1772249721607 2026-02-28 00:35:21.607 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
🔮 Additional context
@binwiederhier commented on GitHub (Apr 18, 2026):
Thanks for the report. I halted the 1.25.0 rollout to investigate this. Can you give me more detail? What do you mean by suddenly quitting? How did you know that it quit/died? Are you able to get old logs via
adb? That would help.You are using a self-hosted server and ntfy.sh? Think of anything else that may help me debug.
@isaitgirl commented on GitHub (Apr 18, 2026):
Thanks for quick reply!
I run ntfy server self hosted.
I notice ntfy had quit because it shows a permanent notification icon in Android and I also check in notification/control panel that it had quit.
I don't know how to use adb, but I'll have a look and try to gather information to be more helpful :)
I have no access to ssh now to check the server version, but I'll attach here in a few hours!
@binwiederhier commented on GitHub (Apr 18, 2026):
Hm.
Please leave logging on and monitor over the next few days if it happens again. I will leave the rollout paused for now. The new code in 1.25.0 does indeed stop the service when there is no network connection -- this is to save battery during offline periods. It should re-enable the service when a new network becomes available. If there is a bug in this code, this could lead to a situation where the service does not come back for 3 hours.
Are you certain that you actually missed notifications? Or are you just seeing the service "quitting"? It's now normal that the background service kills itself and restarts when there is network again. Even short Wifi<->Mobile handovers would cause this.
@isaitgirl commented on GitHub (Apr 18, 2026):
You mentioned a clear scenario for me: when I alternate from Wifi to 5G or become with no internet it's the exactly moment I notice the quitting!
The service keeps running I'm background for a short period after the permanent notification icon vanishes, but after a while the background service seems quit.
I'll be more attentive with that.
But indeed it happens when switchings network or in elevator, garage or other no internet signal.
@isaitgirl commented on GitHub (Apr 18, 2026):
I have just made a test: disabled all connectivity and the app has quit. Looking at background services in developer mode configuration menu, the service had quit and after reconnecting the cell phone the process didn't start again, neither in notification icon and background services list :)
And the service only up again when I open the interface!
@isaitgirl commented on GitHub (Apr 18, 2026):
Logs after manually reopen the app:
This is a log of the ntfy Android app. The log shows up to 1,000 entries.
Device info:
ntfy: 1.25.0 (play)
OS: 5.10.236-android12-9-00020-gf997514b333d-ab13743839
Android: 15 (SDK 35)
Model: bogota
Product: bogota_gn
--
Settings:
{
"autoDeleteSeconds": 2592000,
"autoDownloadMaxSize": 1048576,
"broadcastEnabled": true,
"connectionAlertSeconds": 0,
"connectionProtocol": "jsonhttp",
"darkMode": -1,
"defaultBaseUrl": "https://ntfy.sh",
"dynamicColors": false,
"lastSharedTopics": [],
"minPriority": 1,
"mutedUntil": 0,
"recordLogs": true
}
Logs
1772268048484 2026-02-28 05:40:48.484 D NtfyPollWorker Finished polling for new notifications
1772268176426 2026-02-28 05:42:56.426 D NtfyFirebase Keepalive received, sending auto restart broadcast for foregrounds service
1772268176451 2026-02-28 05:42:56.451 D NtfySubscriberService AutoRestartReceiver: onReceive called
1772268176451 2026-02-28 05:42:56.451 D NtfySubscriberMgr Enqueuing work to refresh subscriber service
1772268176503 2026-02-28 05:42:56.503 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: 21bcb920-7763-419a-a059-a62dd90ea3c7)
1772268176511 2026-02-28 05:42:56.511 D NtfySubscriberService onStartCommand executed with startId: 57
1772268176512 2026-02-28 05:42:56.512 D NtfySubscriberService using an intent with action START
1772268176534 2026-02-28 05:42:56.534 D NtfySubscriberService Refreshing subscriptions
1772268176534 2026-02-28 05:42:56.534 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772268176535 2026-02-28 05:42:56.535 D NtfySubscriberService - New connections: []
1772268176535 2026-02-28 05:42:56.535 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772268176536 2026-02-28 05:42:56.536 D NtfySubscriberService - Match? --> true
1772268176536 2026-02-28 05:42:56.536 D NtfySubscriberService - Obsolete connections: []
1772268176538 2026-02-28 05:42:56.538 D NtfySubscriberService - No action required.
1772271738277 2026-02-28 06:42:18.277 D NtfyPollWorker Polling for new notifications
1772271738281 2026-02-28 06:42:18.281 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
1772271739350 2026-02-28 06:42:19.350 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772271740174 2026-02-28 06:42:20.174 D NtfyPollWorker Finished polling for new notifications
1772273147015 2026-02-28 07:05:47.015 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: 302b6a0a-14a3-4bf2-b40f-3558c1c34a5e)
1772273147020 2026-02-28 07:05:47.020 D NtfySubscriberService onStartCommand executed with startId: 58
1772273147020 2026-02-28 07:05:47.020 D NtfySubscriberService using an intent with action START
1772273147044 2026-02-28 07:05:47.044 D NtfySubscriberService Refreshing subscriptions
1772273147045 2026-02-28 07:05:47.045 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772273147045 2026-02-28 07:05:47.045 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772273147045 2026-02-28 07:05:47.045 D NtfySubscriberService - New connections: []
1772273147046 2026-02-28 07:05:47.046 D NtfySubscriberService - Obsolete connections: []
1772273147046 2026-02-28 07:05:47.046 D NtfySubscriberService - Match? --> true
1772273147047 2026-02-28 07:05:47.047 D NtfySubscriberService - No action required.
1772275344514 2026-02-28 07:42:24.514 D NtfyPollWorker Polling for new notifications
1772275344522 2026-02-28 07:42:24.522 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
1772275345792 2026-02-28 07:42:25.792 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772275346366 2026-02-28 07:42:26.366 D NtfyPollWorker Finished polling for new notifications
1772278982083 2026-02-28 08:43:02.083 D NtfyFirebase Keepalive received, sending auto restart broadcast for foregrounds service
1772278982102 2026-02-28 08:43:02.102 D NtfySubscriberService AutoRestartReceiver: onReceive called
1772278982102 2026-02-28 08:43:02.102 D NtfySubscriberMgr Enqueuing work to refresh subscriber service
1772278982157 2026-02-28 08:43:02.157 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: 90e2ecec-0efc-4207-9c9b-60674309ce48)
1772278982161 2026-02-28 08:43:02.161 D NtfySubscriberService onStartCommand executed with startId: 59
1772278982163 2026-02-28 08:43:02.163 D NtfySubscriberService using an intent with action START
1772278982186 2026-02-28 08:43:02.186 D NtfySubscriberService Refreshing subscriptions
1772278982188 2026-02-28 08:43:02.188 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772278982188 2026-02-28 08:43:02.188 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772278982190 2026-02-28 08:43:02.190 D NtfySubscriberService - New connections: []
1772278982190 2026-02-28 08:43:02.190 D NtfySubscriberService - Obsolete connections: []
1772278982193 2026-02-28 08:43:02.193 D NtfyPollWorker Polling for new notifications
1772278982194 2026-02-28 08:43:02.194 D NtfySubscriberService - Match? --> true
1772278982194 2026-02-28 08:43:02.194 D NtfySubscriberService - No action required.
1772278982200 2026-02-28 08:43:02.200 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
1772278983455 2026-02-28 08:43:03.455 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772278984271 2026-02-28 08:43:04.271 D NtfyPollWorker Finished polling for new notifications
1772280482641 2026-02-28 09:08:02.641 D NtfyMainActivity Create io.heckel.ntfy.ui.MainActivity@27893f0
1772280482656 2026-02-28 09:08:02.656 D NtfyMainActivity Poll worker version matches: choosing KEEP as existing work policy
1772280482656 2026-02-28 09:08:02.656 D NtfyMainActivity Poll worker: Scheduling period work every 60 minutes
1772280482656 2026-02-28 09:08:02.656 D NtfyMainActivity ServiceStartWorker version matches: choosing KEEP as existing work policy
1772280482656 2026-02-28 09:08:02.656 D NtfyMainActivity ServiceStartWorker: Scheduling period work every 180 minutes
1772280482657 2026-02-28 09:08:02.657 D NtfyMainActivity Delete worker version matches: choosing KEEP as existing work policy
1772280482657 2026-02-28 09:08:02.657 D NtfyMainActivity Delete worker: Scheduling period work every 480 minutes
1772280482660 2026-02-28 09:08:02.660 D NtfyMainActivity Battery: ignoring optimizations = false (we want this to be true); instant subscriptions = false; remind time reached = false; banner = false
1772280482660 2026-02-28 09:08:02.660 D NtfyMainActivity wsReconnectRemindTimeReached: true, usingWebSockets: false, canScheduleExactAlarms: false
1772280482773 2026-02-28 09:08:02.773 D NtfyMainActivity Battery: ignoring optimizations = false (we want this to be true); instant subscriptions = true; remind time reached = false; banner = false
1772280482773 2026-02-28 09:08:02.773 D NtfyMainActivity wsReconnectRemindTimeReached: true, usingWebSockets: false, canScheduleExactAlarms: false
1772280482774 2026-02-28 09:08:02.774 D NtfySubscriberMgr Enqueuing work to refresh subscriber service
1772280482780 2026-02-28 09:08:02.780 D NtfyMainActivity Checking global and subscription-specific 'muted until' timestamp
1772280482832 2026-02-28 09:08:02.832 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: ed523f38-178d-4e66-baae-71cde0336a62)
1772280482837 2026-02-28 09:08:02.837 D NtfySubscriberService onStartCommand executed with startId: 60
1772280482837 2026-02-28 09:08:02.837 D NtfySubscriberService using an intent with action START
1772280482849 2026-02-28 09:08:02.849 D NtfySubscriberService Refreshing subscriptions
1772280482849 2026-02-28 09:08:02.849 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772280482850 2026-02-28 09:08:02.850 D NtfySubscriberService - New connections: []
1772280482850 2026-02-28 09:08:02.850 D NtfySubscriberService - Obsolete connections: []
1772280482850 2026-02-28 09:08:02.850 D NtfySubscriberService - No action required.
1772280482850 2026-02-28 09:08:02.850 D NtfySubscriberService - Match? --> true
1772280482850 2026-02-28 09:08:02.850 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772280483382 2026-02-28 09:08:03.382 D NtfyFirebase Subscribing to topic ~control complete: result=null, exception=null, successful=true
1772280484125 2026-02-28 09:08:04.125 D NtfyMainActivity Entering detail view for subscription Subscription(id=6261309, baseUrl=https://push.isacloud.cc, topic=isacloud-alerts, instant=true, mutedUntil=0, minPriority=0, autoDelete=-1, insistent=-1, lastNotificationId=nFH9nhfIz13U, icon=null, upAppId=null, upConnectorToken=null, displayName=null, dedicatedChannels=false, totalCount=201, newCount=2, lastActive=1772240792, connectionDetails=ConnectionDetails(state=CONNECTED, error=null, nextRetryTime=0))
1772280484172 2026-02-28 09:08:04.172 D NtfyDetailActivity Create io.heckel.ntfy.ui.DetailActivity@c324a4c
1772280484226 2026-02-28 09:08:04.226 D NtfySubscriberMgr Enqueuing work to refresh subscriber service
1772280484227 2026-02-28 09:08:04.227 D NtfyDetailActivity 201 item(s) inserted at 0, scrolling to the top
1772280484228 2026-02-28 09:08:04.228 D NtfyNotifService Cancelling notification nFH9nhfIz13U: 152 ms
1772280484231 2026-02-28 09:08:04.231 D NtfyNotifService Cancelling notification ANYuHZvdfahZ: Connection failed
1772280484378 2026-02-28 09:08:04.378 D NtfySubscriberMgr ServiceStartWorker: Starting foreground service (work ID: 41fddc7e-93de-4692-a9f7-49b0ccaa0beb)
1772280484393 2026-02-28 09:08:04.393 D NtfySubscriberService onStartCommand executed with startId: 61
1772280484394 2026-02-28 09:08:04.394 D NtfySubscriberService using an intent with action START
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService Refreshing subscriptions
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService - New connections: []
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService - Active connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService - Obsolete connections: []
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService - Desired connections: [ConnectionId(baseUrl=https://push.isacloud.cc, topicsToSubscriptionIds={isacloud-alerts=6261309}, connectionProtocol=jsonhttp, credentialsHash=564721370, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0), ConnectionId(baseUrl=https://ntfy.sh, topicsToSubscriptionIds={upwBvX4qpCPhRx=23769507}, connectionProtocol=jsonhttp, credentialsHash=0, headersHash=0, trustedCertsHash=0, clientCertHash=0, connectionForceReconnectVersion=0)]
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService - No action required.
1772280484403 2026-02-28 09:08:04.403 D NtfySubscriberService - Match? --> true
1772280485362 2026-02-28 09:08:05.362 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280491711 2026-02-28 09:08:11.711 D NtfyDetailActivity onPause hook: Removing 'notificationId' from all notifications for 6261309
1772280491711 2026-02-28 09:08:11.711 D NtfyDetailActivity onPause hook: Marking subscription 6261309 as 'not open'
1772280545368 2026-02-28 09:09:05.368 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280605372 2026-02-28 09:10:05.372 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280665385 2026-02-28 09:11:05.385 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280725392 2026-02-28 09:12:05.392 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280785399 2026-02-28 09:13:05.399 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280845406 2026-02-28 09:14:05.406 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280905413 2026-02-28 09:15:05.413 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772280965420 2026-02-28 09:16:05.420 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281025425 2026-02-28 09:17:05.425 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281085433 2026-02-28 09:18:05.433 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281145438 2026-02-28 09:19:05.438 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281205446 2026-02-28 09:20:05.446 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281265452 2026-02-28 09:21:05.452 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281366975 2026-02-28 09:22:46.975 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281426987 2026-02-28 09:23:46.987 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281521648 2026-02-28 09:25:21.648 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281588796 2026-02-28 09:26:28.796 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281648803 2026-02-28 09:27:28.803 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281708810 2026-02-28 09:28:28.810 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281768817 2026-02-28 09:29:28.817 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281828823 2026-02-28 09:30:28.823 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281888827 2026-02-28 09:31:28.827 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772281948832 2026-02-28 09:32:28.832 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282008839 2026-02-28 09:33:28.839 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282068846 2026-02-28 09:34:28.846 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282128855 2026-02-28 09:35:28.855 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282188862 2026-02-28 09:36:28.862 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282248867 2026-02-28 09:37:28.867 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282308870 2026-02-28 09:38:28.870 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282368874 2026-02-28 09:39:28.874 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282428879 2026-02-28 09:40:28.879 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282488887 2026-02-28 09:41:28.887 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772282611893 2026-02-28 09:43:31.893 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772283183988 2026-02-28 09:53:03.988 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772284092777 2026-02-28 10:08:12.777 D NtfyPollWorker Polling for new notifications
1772284092785 2026-02-28 10:08:12.785 D NtfyApiService Polling topic https://push.isacloud.cc/isacloud-alerts/json?poll=1&since=nFH9nhfIz13U
1772284093897 2026-02-28 10:08:13.897 D NtfyDetailActivity Checking 'muted until' timestamp for subscription 6261309
1772284094749 2026-02-28 10:08:14.749 D NtfyApiService Polling topic https://ntfy.sh/upwBvX4qpCPhRx/json?poll=1&since=qCNPIo2w8qH9
1772284116050 2026-02-28 10:08:36.050 D NtfyPollWorker Finished polling for new notifications
1772284116156 2026-02-28 10:08
@binwiederhier commented on GitHub (Apr 18, 2026):
Give it a few minutes and see if it shows up then. And then grab the logs for that time period.
I think I may need to add a grace period that prevents the service from quitting immediately, e.g. only after 5min of no network. Though what's important is whether you actually missed notifications. Did you?
@isaitgirl commented on GitHub (Apr 18, 2026):
Indeed notification is not showing.
The test I did:
@binwiederhier commented on GitHub (Apr 18, 2026):
Well that sucks.
I am thinking about reverting this entire behavior, going back to before the "connection lost" alert and before the no network hooks. I'm sorry. I'll fix it. But it'll take some time.
@binwiederhier commented on GitHub (Apr 18, 2026):
^^ Oh this probably explains it. You need to have "ignore battery optimizations = true", otherwise the subscriber service cannot be restarted.
Claude says it much better:
@isaitgirl commented on GitHub (Apr 18, 2026):
Wow!!!!!!!
While writing this reply ntfy started automatically but it was about 15 minutes after the test! 😂😂😂
And the notification arrived - so lately, but arrived :)
Sending logs:
https://nopaste.net/7ugJUconxx
@binwiederhier commented on GitHub (Apr 18, 2026):
For reference in the future (nopaste.net will delete it), your log: 7ugJUconxx.txt
That confirms it.
This is all not good...
I think what I may want to do is this:
onLost), record the lost time, and only stop the retries (desiredConnections) when it's been 5-10min without network. This will avoid potential races when hopping networks.@isaitgirl You have been absolutely great. The best bug reporter ever. Take this virtual gold star ⭐ and my gratitude. I'll figure something out.
@wunter8 Your thoughts would be welcome, as always.
@isaitgirl commented on GitHub (Apr 18, 2026):
Ntfy is a fundamental piece of my volunteer xmpp service and my solid rock for alerting flow to ensure services are reliably operating and users are happy 💜
You guys deserve all merits ⭐ 😊
@wunter8 commented on GitHub (Apr 18, 2026):
I think your plan sounds good @binwiederhier
In one sense, this is "working as expected" since any time ntfy hasn't been granted a battery exemption, the user is going to have a less-than-optimal experience. Especially when the phone loses an internet connection. But your proposal improves the experience for the not-exempted users without hunting the exempted users too much.
I think keeping the service running but not trying to make connections is a good idea to help battery usage. And waiting a bit before killing the connections also makes sense to me 👍
Thanks for such a thorough investigation @isaitgirl!
@isaitgirl commented on GitHub (Apr 21, 2026):
Just to clarify in my test scenario battery optimization is not enabled for ntfy app, it's allowed to run in background. In battery options, background apps, ntfy is added to always allow :)