Clarify WebPush documentation and it's relationship to proprietry services (#1257)
based on conversation in https://github.com/mastodon/mastodon/issues/25729
This commit is contained in:
parent
610212f450
commit
d9f99fa667
|
@ -22,7 +22,7 @@ aliases: [
|
|||
|
||||
## About the Web Push API {#about}
|
||||
|
||||
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. It requires running a proxy server that connects to Android’s and Apple’s proprietary notification gateways. However, the proxy server does not have access to the contents of the notifications. For a reference, see [Mozilla’s web push server](https://github.com/mozilla-services/autopush), or more practically, see:
|
||||
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. Mastodon doesn't connect to Android’s and Apple’s proprietary notification gateways directly, so if you wish to use those you can use a proxy server that translates between the WebPush standard and those gateways. This can be implemented in such a way that the proxy server does not have access to the contents of the notifications. For an example, see [Mozilla’s reference web push server](https://github.com/mozilla-services/autopush), or one of the several relays developed by the Mastodon community specifically for this purpose:
|
||||
|
||||
* [toot-relay](https://github.com/DagAgren/toot-relay)
|
||||
* [PushToFCM](https://github.com/tateisu/PushToFCM)
|
||||
|
@ -334,4 +334,4 @@ Invalid or missing Authorization header.
|
|||
|
||||
## See also
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/push/subscriptions_controller.rb" caption="app/controllers/api/v1/push/subscriptions_controller.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/push/subscriptions_controller.rb" caption="app/controllers/api/v1/push/subscriptions_controller.rb" >}}
|
||||
|
|
Loading…
Reference in New Issue