mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #363] IOS app: Poll self-hosted server setting #282
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#282
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 @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
@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).
@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
@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.