mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #975] iOS not pushing notifications. Iphone12 Version 15.3.1 #683
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#683
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 @haonanor on GitHub (Dec 8, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/975
❓ Question
My server.yml configuration:
base-url: "https://push.mydomain.com" listen-http: "localhost:6680" upstream-base-url: "https://ntfy.sh"My Nginx configuration:
`
server {
listen 80;
server_name push.mydomain.com;
location / {
# Redirect HTTP to HTTPS, but only for GET topic addresses, since we want
# it to work with curl without the annoying https:// prefix
set $redirect_https "";
if ($request_method = GET) {
set $redirect_https "yes";
}
if ($request_uri ~* "^/([-_a-z0-9]{0,64}$|docs/|static/)") {
set $redirect_https "${redirect_https}yes";
}
if ($redirect_https = "yesyes") {
return 302 https://$http_host$request_uri$is_args$query_string;
}
}
}
server
{
listen 443 ssl http2;
server_name push.mydomain.com;
}
}
`
However, I cannot receive instant push in IOS, and can only see the push data after pull-down refresh in the app
Toil answer
@nclark commented on GitHub (Dec 22, 2023):
Not sure if this will help but I believe given the description here that the firebase subscription only happens when you subscribe in the app. I made the same change as you on my server then removed and added all of my subscriptions back in the iOS app and things started working 👌
@brandonleon commented on GitHub (Apr 12, 2024):
I'm running into the same thing. I reinstalled the app numerous times, restarted the phone between installs. Furthermore, I get notifications on the phone if the app is opened but never an actual push notification.
I've even tried generating the sha256sum hash of the topic URL and subscribing to that directly on ntfy.sh, but I don't see any traffic on that topic.
@ghost commented on GitHub (Apr 16, 2024):
I have been facing the same issue, I tried switching my base-url to internal IP address, external IP, reverse proxied hostname
I was using nginx, then tried switching to a port forwarded hostname, even tried ngrok, but the outcome didn't change
I also tried using
httpandhttpsfor both theDefault Serveron my phone and thebase-urlNone of them works, I always have to manually go into the app, open the topic and pull down to refresh
That's the only way I'm able to see the new messages
@brandonleon commented on GitHub (Apr 18, 2024):
Since making my previous comment it has started working. I have made no changes. @rustic-monkey my setup is identical to you with the exception of having
upstream-base-url: "https://ntfy.sh"also configured.@ghost commented on GitHub (Apr 18, 2024):
@brandonleon I'm glad you got it working, below are the only differences from template for
server.ymlI tried all possible combinations for the
base-url, nothing seems to fix the issue for me.@ghost commented on GitHub (Apr 18, 2024):
.... and this my docker run command
@wunter8 commented on GitHub (Apr 18, 2024):
In general, to get iOS notifications to work, you need to:
base-urlto your public domain (with "https://" and without a trailing slash)upstream-base-url: "https://ntfy.sh"(make sure it doesn't have fancy quotation marks or anything. You can copy and paste it directly from here, but I know others have had issues copying from other locations)@ghost commented on GitHub (Apr 18, 2024):
@wunter8 I can't believe that actually solved the problem, I believe I had a trailing slash
/whenever I had my public domain in there. I redeployed my docker container with the exact same config without the trailing slash and it worked.Thank you