Live data from Hacker News

Ntfy.sh – Send push notifications to your phone via PUT/POST

ntfy.sh

261–270 of 306 posts

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#262

Hey cool, this is my project. Happy to answer questions. Edit: I am also looking for a new opportunity. If you need a good Staff/Principal Engineer, check out my resume here: https://heckel.io/resume.pdf

How can one integrate it into his own android app?

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#263
post #78

Earlier quoted context omitted.

You are 100% correct. Boy that's confusing. I thought they'd just gotten a new site!

It looks like you could add ntfy.sh as a backend for dschep/ntfy, but just imagine trying to document that!

When I found out about the name collision, i did: https://github.com/dschep/ntfy/pull/234

It apparently never got merged. ;-)

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#264
post #252

Earlier quoted context omitted.

There are two useful public topics: https://ntfy.sh/docs/publish/#public-topics - https://ntfy.sh/announcements for announcements (usually only release announcements) - https://ntfy.sh/stats for daily stats (right before midnight UTC) Note that messages are only cached for 12h server-side, so you'll not see any messages in there mostly. I suggest to just subscribe and see if you like getting these messages.

Am I understand right that with the knowledge of the topic name I can also publish announcement messages into that "official" topic?

No. There are ACLs to protect them, see https://ntfy.sh/docs/config/#access-control

But for all other topics, yes. Knowing the topic means you can publish to it.

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#265
I did this 10 years ago by installing Tor on the phone and using a hidden service. It didn't need to be hidden, but it's much more convenient to set up than this while offering superior security with no effort. Actually I2P or something like that is a better way of doing it, just I only had Tor on the phone at the time and I2P is kind of script kiddie tier.

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#267

Earlier quoted context omitted.

Much appreciated my friend. I honestly didn't opt for the cheapest server because I wanted it to run well. I don't want to constantly fight for resources or worry about it. It was supposed to be fast and be able to handle traffic well. And it is. It's not falling apart from the HN traffic and it has a lot of head room. Plus. It's doing 400k messages a day already easily. Anyway. Thank you so much for your generosity.…

Your approach is great. It’s odd to see so many penny pinching comments here, the HN crowd usually skews the other way.

I think its because this is a hobby project and for a lot of people the cheaper a hobby project is the more they can keep running before the money runs out. It's also that for some people optimizing costs and making things run on as few resources as possible is fun.

But if you don't find it fun spending time performance optimizing to the extreme, and can afford it, then there's nothing quite like massively over-provisioning hardware. It makes a lot of performance and reliability problems go away.

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#268

Hey cool, this is my project. Happy to answer questions. Edit: I am also looking for a new opportunity. If you need a good Staff/Principal Engineer, check out my resume here: https://heckel.io/resume.pdf

How can one integrate it into his own android app?

To publish, just PUT/POST via your favorite HTTP library, or publish via intent (https://ntfy.sh/docs/subscribe/phone/#automation-apps).

And to subscribe, either use UnifiedPush (https://unifiedpush.org/), or use intents (see link above). Or, implement your own foreground service with WebSockets (just like the ntfy app does).

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#269

Earlier quoted context omitted.

This is super cool. If you don’t mind saying, how many connections do you tend to keep open at steady state?

Here are some stats from last night showing the volume of messages: IPs: 9756 Clients: 9980 - Google Play: 2796 - F-Droid: 5985 - iOS: 794 - curl: 62 - other: 343 Messages: - Successful: 310076 - Failed (rate limited): 104741 - Failed (other): 6511 Top publishers (* = limit exemption): 22908 matrix.org* 22352 matrix.gateway.unifiedpush.org* 18286 up.schildi.chat* 16134 192.124.x.x 14056 matrix.envs.net* 13376 108.35.…

Thanks this is really nice. Impressive to see that f-droid is that high!

Re: Ntfy.sh – Send push notifications to your phone via PUT/POST

#270

Earlier quoted context omitted.

Start providing it (reliability/HA) and turn it into an actual business :-) It'd be a lot more fun than getting a principle position

As an engineer that also builds fun things that a lot of people use: > turn it into an actual business :-) It'd be a lot more fun Not only could it _not_ be more fun, but it might actually suck all the existing fun out of it completely. But the OP will know better about that!

Very true. But at least they might make some money from something of their choosing on their own terms. That can’t be too bad.
Post reply on HN