![ntfy](https://discuss.ntfy.sh/pictrs/image/1e4ecdbb-edae-4fa6-b89f-4106c9db1155.png?format=webp&thumbnail=48)
ntfy
- Using ntfy as push server for PWA
Currently i try to create a PWA/WebApp for my own project. I am looking at the possibilities of integrating Web Push into my WebApp. If I understand the concept correctly, I need a push server in addition to my WebApp and the browser. Can ntfy take over this role?
- The Changelog podcast interviewed me about ntfychangelog.com Pushing ntfy to the next level with Philipp C. Heckel (Changelog Interviews #562)
This week Jerod goes solo with Philipp Heckel, creator of ntfy, to discuss this simple HTTP-based service that lets you send notifications to your phone or desktop via scripts from any computer. They discuss why he built it, how he built it, and what his plans are for the future of this beloved side...
- message-expiry-duration vs cache-duration config options
What is the difference between the two.
The
cache-duration
is explained in the docs and is fairly clear:> Duration for which messages will be buffered before they are deleted
so it is to account for network interruptions of subscribers.
message-expiry-duration
is mentioned but there is no explanation for it in the docs. - Web app or native app on iOS?
First started using ntfy around a month ago and I’m really enjoying it.
Question: are folks mostly using the native iOS app or the web app? Seems to me that the web app might be more full featured. I do miss having markdown formatting in the native iOS app.
- I have managed to get [@protonmail](https://mastodon.social/@protonmail) notifications working on a GSF free [@GrapheneOS](https://grapheneos.social/@GrapheneOS) phone by ... running the proton bridge
I have managed to get @protonmail notifications working on a GSF free @GrapheneOS phone by ... running the proton bridge on a @debian virtual machine and IMAP idle polling it with a shell script. The script then sends a request to @ntfy and boom mail alerts are back. Also that's geek bingo for me.
- ntfy and unraid
Hi All,
I am a little bit new to ntfy (just having a play with it at the moment). I have managed to get my ntfy server up and running on a unraid docker server (using the ntfy app from the unraid appstore), but it when I try and connect the app to the server it is asking for username and password. I havent set up any authentication at the moment, as I am unable to run the ntfy cli from within the docker environment yet.
Any guidance would be great if anyone has a similar setup.
- Enhancement proposal: How about a subtle Divider() between days?
Made a little mock-up to show what I mean. May not be for everyone but in my case it would improve readability. Maybe as on option?
- Send data in non-custom fields
I have a self-hosted ntfy instance and I am gradually building a bare-bones mobile app to display my notifications.
I am publishing by POSTing as JSON. Is it possible for the ntfy server to send all the data fields that are included in the JSON? I would like to pass data in custom fields. Makes sense?
If this does not exist, is it possible to make a feature-request?
- Open Collective Donations
I see that ntfy has an Open Collective but I don't see the option to donate using that. Will ntfy change this in the future ?
- Notify via ntfy on new Lemmy posts
Lemmy doesn't support notifications of all new posts for a certain community, so I [1] wrote a little script to send me a ntfy notification for each new post in the ntfy community. Here it is:
https://gist.github.com/binwiederhier/70f13b7c7338a2b75e15438b5567a6d6
[1] When I say "I", I really mean 99% ChatGPT. But hey, I made it prettier and refined it a little at least: https://chat.openai.com/share/7703dbe5-6801-4d5b-8d56-c3f18ca3ac4a
- Docker-compose + Traefik
Has anyone got a working setup of this combination? I somehow can't get things to work
I can run the below on the docker host sucessfully:
curl -d "Backup successful 😀" localhost:81/test {"id":"4EpidFddbe8p","time":1688997266,"expires":1689040466,"event":"message","topic":"test","message":"Backup successful 😀"}
…but when I try the public url from a different machine I get a 404 page not found. Which to me means ntfy is running, but there's something wrong with my Traefik setup.docker-compose.yml ``` … ports: - 81:80 labels: - "traefik.enable=true" - "traefik.http.routers.ntfy.rule=Host(
ntfy.mydomain.com
)" - "traefik.http.routers.ntfy.tls=true" - "traefik.http.routers.ntfy.entrypoints=http" - "traefik.http.routers.ntfy.entrypoints=https" - "traefik.http.routers.ntfy.tls.certresolver=http" - "traefik.http.services.ntfy.loadBalancer.server.port=81" - "traefik.docker.network=traefik-proxy" - "traefik.http.routers.ntfy.service=ntfy"```
Minimalistic server.yml: ``` cat config/server.yml
ntfy server config file
base-url: "https://ntfy.mydomain.com" #upstream-base-url: "https://ntfy.sh" #listen-http: "127.0.0.1:80" cache-file: "/var/cache/ntfy/cache.db" #attachment-cache-dir: "/var/cache/ntfy/attachments" behind-proxy: true ```
Can anyone spot a mistake here or suggest additional troubleshooting steps?
---- Edit: Never mind, Traefik has given me so much grief, my brain doesn't seem to be compatible :-), that I decided to switch to nginx. Got everything running after 5 minutes…
- [SOLVED] Self-hosted NTFY does not receive all notifications
I do POSTs from a backend app to a self-hosted ntfy instance (docker). The POSTs do not fail and I also save them in local db. I now compare the notifications cached in
/var/cache/ntfy/cache.db
against the ones I save in my local db and I see that ntfy is missing a lot. As an example, today for example I have POSTed 540 times and in cache.db I see only 60 of them. The skipped ones are not even at regular intervals.Is there a logfile I can check in the ntfy service? The output of the ntfy process itself only shows the expected
INFO Server stats...
message but not errors.Is there any reason ntfy may not be registering some of the POSTed notifications?
Best regards.
Edit: I can also confirm on the mobile app that I did not receive the skipped ones; I have only received indeed the ones that I see in ntfy's cache.db.
- [disscussion] Lemmy push notifications with ntfy
Hi guys do you know of any way to integrate ntfy push notifications with lemmy?
Only way I've found so far is using an rss script https://github.com/camerahacks/rpilocator-rss-feed/blob/main/rpilocator-rss-ntfy.py
Curious if there are any other better ways to go about this
- Ntfy Connector: Modal-based discord bot to send,and now receive, ntfy notifications.github.com GitHub - jr1221/ntfy_discord_bot: An advanced modal-based bot for interacting with the ntfy.sh API
An advanced modal-based bot for interacting with the ntfy.sh API - GitHub - jr1221/ntfy_discord_bot: An advanced modal-based bot for interacting with the ntfy.sh API
Hello All,
I have been building a discord bot to send and recieve ntfy notifications. Its features include:
- Publish messages with all customizations
- Poll messages with all filters
- Subscribe to topics with all filters (one per user at any time)
- Change the server to your own selfhosted one
I just recently managed to cover pretty much all of the ntfy API parameters using a variety of slash command arguments, modals, and dropdowns.
Feel free to check it out and add it to your server, but if you want consistent access, please selfhost. As a novice programmer, this is a learning experience for me, so any contributions/advice for my most likely convoluted code is much appreciated. Thanks!
- ntfy release 🎉 - Now with Web Push and a progressive web app (hello iOS friends ❤️), and with dark mode for the web app! ntfy lets you send push notifications to your phone via a simple REST API, and
Hello friends 👋, it's that time again. A new ntfy release has landed. This one is pretty cool!
For those who don't know, ntfy is a a tool that lets you send push notifications to your phone from any script or server using a simple HTTP PUT/POST requests. It's 100% open source and self-hostable, and has an Android app and a web app. You can use ntfy like this (more in the docs). This will send a notification to your phone:
curl -d "Backup on $(hostname) complete" ntfy.sh/mytopic
I host free and open version on ntfy.sh, but you can host your own of course.
🔥 What's new? With this release, the ntfy web app now contains a progressive web app (PWA) with Web Push support, which means you'll be able to install the ntfy web app on your desktop or phone similar to a native app (even on iOS! 🥳). Installing the PWA gives ntfy web its own launcher, a standalone window, push notifications, and an app badge with the unread notification count. Note that this needs to be configured for selfhosted servers!
On top of that, this release also brings dark mode 🧛🌙 to the web app.
🙏 A huge thanks for this release goes to @nimbleghost, for basically implementing the Web Push / PWA and dark mode feature by himself. I'm really grateful for your contributions.
❤️ If you like ntfy, please consider sponsoring us via GitHub Sponsors or Liberapay, or buying a paid plan via the web app. Contrary to "popular" belief, I am not swimming in money due to the paid plans. 😬
Detailed release notes: https://docs.ntfy.sh/releases/
Other links:
- ntfy website: https://ntfy.sh/
- ntfy web app: https://ntfy.sh/app
- GitHub (server): https://github.com/binwiederhier/ntfy
- GitHub (Android): https://github.com/binwiederhier/ntfy-android
- Google Play: https://play.google.com/store/apps/details?id=io.heckel.ntfy
- F-Droid: https://f-droid.org/en/packages/io.heckel.ntfy/
- Discord: https://discord.com/invite/cT7ECsZj9w
- Matrix: https://matrix.to/#/#ntfy:matrix.org
- Lemmy (brand new 🔥): https://discuss.ntfy.sh/ (register on other instances please)
Public topics:
- https://ntfy.sh/stats (daily stats scraped from nginx logs)
- https://ntfy.sh/announcements (release announcements)
- 📢 ntfy Web Push / PWA: Request for testing!
cross-posted from: https://discuss.ntfy.sh/post/25279
> Hello folks, > > Request for testing: The next ntfy server release will contain a progressive web app (PWA) with Web Push support, which means you'll be able to install the ntfy web app on your desktop or phone similar to a native app (even on iOS! 🥳), and get basic push notification support (without any battery drain). > > Installing the PWA gives ntfy web its own launcher (e.g. shortcut on Windows, app on macOS, launcher shortcut on Linux, home screen icon on iOS, and launcher icon on Android), a standalone window, push notifications, and an app badge with the unread notification count. > > ! > > ! > > Testing instructions: The (hopefully) production ready version of the PWA is currently deployed on https://staging.ntfy.sh/app -- Install instructions with screenshots can be found in the docs (https://docs.ntfy.sh/subscribe/pwa/). > > Please report bugs or issues on Discord, Matrix, or Lemmy (!ntfy@discuss.ntfy.sh). PLEASE HELP TEST > > Huuuuge thanks goes to @nimbleghost for developing this entire feature top to bottom. If you throw donations (GitHub Sponsors or Liberapay) my way, I'll share them with him. He certainly deserves it for all this great work. 👏 > > -- > If you don't know what ntfy is: ntfy (pronounce: notify) is a simple HTTP-based pub-sub notification service. You can use it to send push notifications to your phone via HTTP PUT/POST. You can selfhost it or use the hosted version on ntfy.sh >
- ntfy Web Push / PWA support is coming soongithub.com Add PWA manifest, service worker, and web push by nimbleghost · Pull Request #751 · binwiederhier/ntfy
Resolves #346 Resolves #199 Adds a PWA manifest, service worker, the required go server routes, and VAPID-based web push I can't test Android, but this is what it looks like on macOS and iOS:
ntfy iOS support is about to get much better. While I haven't worked on the native app in a while, the progressive web app (PWA) is going to make the web app enough to receive notifications on iOS (and others).
Almost all of the credit goes to @nimbleghost for the implementation.
- Using healthchecks.io and ntfy.sh to wake you up if your services are down
I use ntfy (on another instance) + healthchecks.io to wake me up at night when ntfy.sh is down (crazy inception, right?). It's the "poor man's PagerDuty" if you will. It works amazingly.
Here's how I set it up:
- I signed up healthchecks.io (free plan) and configured a project for "ntfy.sh" with a "ntfy" integration, i.e. publish to
ntfy.example.com/<secret>
with max priority - I have two different hosts execute small "integration ntfy.sh tests" and only ping healthchecks.io if they succeed. If they don't healthchecks.io will publish to
ntfy.example.com/<secret>
- In the ntfy Android app, I subscribe to
ntfy.example.com/<secret>
, enable "Keep alerting on highest priority", and make it override DND (do not disturb) for this topic.
Now when ntfy.sh goes down, the integration tests in the cronjobs will fail, and so healthchecks.io will not be pinged, which will trigger it to publish to
ntfy.example.com/<secret>
and let my phone consistently ring until I acknowledge it. - I signed up healthchecks.io (free plan) and configured a project for "ntfy.sh" with a "ntfy" integration, i.e. publish to