Giter Site home page Giter Site logo

Comments (5)

wunter8 avatar wunter8 commented on June 2, 2024

This is not supported right now, and there aren't any plans to add it

You could achieve something similar (at least through the API) using tags: https://docs.ntfy.sh/subscribe/api/#filter-messages

As far as I know, neither Android or iOS supports filtering by tags yet, though

from ntfy.

ktiedt avatar ktiedt commented on June 2, 2024

Thanks @wunter8 i suppose tags would not be useful for access restrictions based on that response as well so sounds like a non-starter for this design. Back to the drawing board for me.

from ntfy.

wunter8 avatar wunter8 commented on June 2, 2024

ntfy has other features for access restrictions (See access control in the docs)

What are you trying to set up? It might not be quite as convenient, but devices could just subscribe to one or more of the topics mytopic, mytopic-group1, and mytopic-group2, and the publishing device can choose which topic is appropriate to publish to, right?

from ntfy.

ktiedt avatar ktiedt commented on June 2, 2024

@wunter8 something akin to user based subscriptions without having to create a new topic for every event type and maintain access control so only said user or admins could view them. Examples:

Mytopic/user1/on-message

Vs

Mytopic/user2/on-message

Cheesy example but easiest I could think of without going into the weeds

from ntfy.

binwiederhier avatar binwiederhier commented on June 2, 2024

As @wunter8 said, there are no plans for subtopic support. You can achieve user access for "subtopics only accessible for ..." using ACLs and patterns, e.g. `ntfy access user1 'mytopic-group1-*', but that's all. I think it's still limited and won't wor for your entire use case, though.

I'm closing this ticket since it's about nested topics, but feel free to continue talking here or on Discord/Matrix.

from ntfy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.