Web Push API
Mastodon natively supports the Web 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, or more practically, see:
Using the Web Push API requires your app to have the
push scope. To create a new Web Push API subscription, use POST /api/v1/push/subscription.
Last updated September 17, 2019 · Improve this page