Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target certain devices #51

Closed
binwiederhier opened this issue Dec 11, 2021 · 6 comments
Closed

Target certain devices #51

binwiederhier opened this issue Dec 11, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@binwiederhier
Copy link
Owner

See https://discord.com/channels/874398661709295626/874398661709295629/919114373992165437

I picture this very simple:

curl ntfy.sh/mytopic/json?id=device1

And then:

curl -d "Hi" "Targets: device1,device2" ntfy.sh/mytopic
@binwiederhier binwiederhier added the enhancement New feature or request label Dec 11, 2021
@12nick12
Copy link
Sponsor

I second this. Or I was thinking of being able to create a group of multiple topics.

@binwiederhier
Copy link
Owner Author

So, I was actually thinking of deleting this. Because if you need to target another device, just make another topic. They are cheap, right?

@12nick12
Copy link
Sponsor

I guess you have good point, For me I have 15 servers and would love each one to have their own topic and I feel it's cumbersome to have to subscribe to 15 topics in the app. If there's a way to import/export topics I guess that wouldn't be to bad.

Does having more topics in the Android app user any more/less battery?

@binwiederhier
Copy link
Owner Author

I think it's super easy to add device targeting, so I may as well add it. All topics share one connection, so there is no battery difference.

@binwiederhier
Copy link
Owner Author

If there's a way to import/export topics I guess that wouldn't be to bad.

There is not (yet). :-D

@binwiederhier
Copy link
Owner Author

I thought more about this, and I think the "target devices" feature is something that pushbullet and others may have drilled into people, but in ntfy a topic is the target. Adding target device filters would make things complicated and weird, though not hard to do. I think I'll close this for now; but I'm happy to re-open if people desperately want this.

As for an import/export feature, there's a ticket here: #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants