@S1m so the flow is like this:
1. An app asks the user to choose a distributor like ntfy.
2. The app requests an unique URL from the ntfy-app.
3. It sends this unique URL to its own backend server. For mastodon this would be the API method you provided.
4. When there is a event, the mastodon backend sends the notification via web push to the unique URL.
Did I get this right?
@aerion @unifiedpush @notnotrachit @daniel @snikket_im This is a really great write-up.
One thing I still don't understand is, how does the backend know which server to send the notification to?
When the user chooses a distributor, is the app sending the distributor's URL to the backend, which then associates the app/user with that URL?