[GH-ISSUE #363] IOS app: Poll self-hosted server setting #282

Closed
opened 2026-05-07 00:22:35 +02:00 by BreizhHardware · 3 comments

Originally created by @WebKenth on GitHub (Jul 13, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/363

To resolve the slow response time of up to 20minutes for notifications to come through via iOS app

Would it not be possible for the iOS app to simple do a GET request to the self-hosted server to fetch any new notifications?

I know next to nothing about the iOS app limitations, but a background GET request every minute doesn't seem like the biggest resource draw

The reason i focus on self hosting is to avoid bombarding https://nfty.sh/

but would offer developers the advantage of boosting their own service without having to rely to heavily on the 20 minute delay

Originally created by @WebKenth on GitHub (Jul 13, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/363 To resolve the slow response time of up to 20minutes for notifications to come through via iOS app Would it not be possible for the iOS app to simple do a GET request to the self-hosted server to fetch any new notifications? I know next to nothing about the iOS app limitations, but a background GET request every minute doesn't seem like the biggest resource draw The reason i focus on self hosting is to avoid bombarding https://nfty.sh/ but would offer developers the advantage of boosting their own service without having to rely to heavily on the 20 minute delay
Author
Owner

@binwiederhier commented on GitHub (Jul 13, 2022):

iOS does not allow scheduling regular background tasks at all. The fact that we can poll every 20 minutes is achieved by sending a "poll now" message from the server to everyone. The shortest allowed interval for these messages is 3 per hour (20 minutes).

<!-- gh-comment-id:1183089213 --> @binwiederhier commented on GitHub (Jul 13, 2022): iOS does not allow scheduling regular background tasks at all. The fact that we can poll every 20 minutes is achieved by sending a "poll now" message from the server to everyone. The shortest allowed interval for these messages is 3 per hour (20 minutes).
Author
Owner

@WebKenth commented on GitHub (Jul 13, 2022):

Well that isn't great at all :-/

I guess the only way is to create your own firebase application ?

https://ntfy.sh/docs/config/#ios-instant-notifications

I tried adding the upstream-base-url: "https://ntfy.sh" but i get no notifications at all :-/

sucks having to pay 99$ a year just for notifications

<!-- gh-comment-id:1183109825 --> @WebKenth commented on GitHub (Jul 13, 2022): Well that isn't great at all :-/ I guess the only way is to create your own firebase application ? https://ntfy.sh/docs/config/#ios-instant-notifications I tried adding the `upstream-base-url: "https://ntfy.sh"` but i get no notifications at all :-/ sucks having to pay 99$ a year just for notifications
Author
Owner

@binwiederhier commented on GitHub (Jul 13, 2022):

Try adding the upstream URL and then also enabling trace mode via the log-level setting. Then publish a test message to a test topic and post it here.

The base URL you define in server.yml and the one you enter in the iOS app have to match exactly.

<!-- gh-comment-id:1183128870 --> @binwiederhier commented on GitHub (Jul 13, 2022): Try adding the upstream URL and then also enabling trace mode via the log-level setting. Then publish a test message to a test topic and post it here. The base URL you define in server.yml and the one you enter in the iOS app have to match exactly.
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#282
No description provided.