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

[feature] WebPush push notification support #1350

Open
dbkr opened this issue Jan 16, 2023 · 0 comments
Open

[feature] WebPush push notification support #1350

dbkr opened this issue Jan 16, 2023 · 0 comments
Labels
enhancement New feature or request future tech Powerful technology to be added in the future.

Comments

@dbkr
Copy link
Contributor

dbkr commented Jan 16, 2023

Is your feature request related to a problem ?

Client that use the Mastodon WebPush API for notifications currently aren't able to send push notifications since GtS doesn't support the WebPush API.

Describe the solution you'd like.

GtS could implement the Mastodon push API (https://docs.joinmastodon.org/methods/push/) which would allow notifications to work in these clients.

I think this would involve something along the lines of:

  • Adding endpoints to subscribe to notifications, get, edit and remove subscriptions
  • Storing the current subscriptions in the database along with what they're subscribed to
  • A component that sends pokes to the endpoint given by the client in the subscription payload
  • Encrypting the payloads of those pokes with ECDH / AES

Resources:

Describe alternatives you've considered.

GtS supports pull-based notifications currently, so any apps that use this by polling will be able to support notifications without issue.

Additional context.

This would fix #1139

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

No branches or pull requests

2 participants