Update Push-notifications.md
This commit is contained in:
parent
49a6164015
commit
034111e07f
|
@ -1,6 +1,12 @@
|
||||||
Push notifications
|
Push notifications
|
||||||
==================
|
==================
|
||||||
|
|
||||||
Mastodon natively supports the [Web Push API](https://developer.mozilla.org/en-US/docs/Web/API/Push_API). You can utilize the same mechanisms for your native app. See also: [Mozilla's web push server](https://github.com/mozilla-services/autopush).
|
Mastodon natively supports the [Web Push API](https://developer.mozilla.org/en-US/docs/Web/API/Push_API). You can utilize the same mechanisms for your native app. For a reference, see [Mozilla's web push server](https://github.com/mozilla-services/autopush), and more practically, see:
|
||||||
|
|
||||||
The other option involves using the Mastodon streaming API on behalf of the app's users, as a sort of proxy. See <https://github.com/Gargron/tusky-api> for an example.
|
- [toot-relay](https://github.com/DagAgren/toot-relay)
|
||||||
|
- [PushToFCM](https://github.com/tateisu/PushToFCM)
|
||||||
|
|
||||||
|
The relevant parts of the Mastodon REST API are:
|
||||||
|
|
||||||
|
- `GET|POST|PUT /api/v1/push/subscription` ([Documentation](API.md#adding-push-subscription))
|
||||||
|
- You need to request authorization for the `push` scope from the user to be able to use that API
|
||||||
|
|
Loading…
Reference in New Issue