[GH-ISSUE #1304] Running behind Cloudflare Zero trust from iOS app #926

Open
opened 2026-05-07 00:28:48 +02:00 by BreizhHardware · 1 comment

Originally created by @danielfrg on GitHub (Mar 29, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1304

🐞 Describe the bug

Connecting from the iOS app to a server behind Cloudflare Zero trust doesnt work.
Connecting to a topic says:

Unexpected response from server. Is this a ntfy server?

💻 Components impacted

iOS app

💡 Screenshots and/or logs

🔮 Additional context

I am assuming the error is mostly that when behind Zero Trust the web page that is returned is the Cloudflare login page for users. After a successful login there it does show the actual ntfy UI or API. So it needs a way to do that, save that CF token and use that for other requests.

In Home Assistant this is possible so i am assuming this should also be possible for ntfy.

Maybe someone has a workaround for this?

Originally created by @danielfrg on GitHub (Mar 29, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1304 :lady_beetle: **Describe the bug** <!-- A clear and concise description of the problem. --> Connecting from the iOS app to a server behind Cloudflare Zero trust doesnt work. Connecting to a topic says: ``` Unexpected response from server. Is this a ntfy server? ``` :computer: **Components impacted** <!-- ntfy server, Android app, iOS app, web app --> iOS app :bulb: **Screenshots and/or logs** <!-- If applicable, add screenshots or share logs help explain your problem. To get logs from the ... - ntfy server: Enable "log-level: trace" in your server.yml file - Android app: Go to "Settings" -> "Record logs", then eventually "Copy/upload logs" - web app: Press "F12" and find the "Console" window --> :crystal_ball: **Additional context** <!-- Add any other context about the problem here. --> I am assuming the error is mostly that when behind Zero Trust the web page that is returned is the Cloudflare login page for users. After a successful login there it does show the actual ntfy UI or API. So it needs a way to do that, save that CF token and use that for other requests. In Home Assistant this is possible so i am assuming this should also be possible for ntfy. Maybe someone has a workaround for this?
Author
Owner

@gcstang commented on GitHub (Oct 30, 2025):

the ntfy app doesn't work with cloudflare on Android either, the only option that sort of works is using chrome but then not all notifications make it when using PWA and enable notify option

<!-- gh-comment-id:3469809247 --> @gcstang commented on GitHub (Oct 30, 2025): the ntfy app doesn't work with cloudflare on Android either, the only option that sort of works is using chrome but then not all notifications make it when using PWA and enable notify option
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#926
No description provided.