about summary refs log tree commit diff
path: root/docs/Using-the-API/Push-notifications.md
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-05 17:51:44 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-05 17:51:44 +0100
commit77e13c2bc93fdb633f27f94989ab5770f9ecc3b3 (patch)
treec9b139593bf3bd478bfaa2e44657492cfab33f94 /docs/Using-the-API/Push-notifications.md
parent19b9e1e2c3d621b5f9f2367980dae62648fe22fa (diff)
Removing failed push notification API, make context loads use cache
Diffstat (limited to 'docs/Using-the-API/Push-notifications.md')
-rw-r--r--docs/Using-the-API/Push-notifications.md15
1 files changed, 0 insertions, 15 deletions
diff --git a/docs/Using-the-API/Push-notifications.md b/docs/Using-the-API/Push-notifications.md
index fd50a75bd..d98c8833a 100644
--- a/docs/Using-the-API/Push-notifications.md
+++ b/docs/Using-the-API/Push-notifications.md
@@ -2,18 +2,3 @@ Push notifications
 ==================
 
 **Note: This push notification design turned out to not be fully operational on the side of Firebase. A different approach is in consideration**
-
-Mastodon can communicate with the Firebase Cloud Messaging API to send push notifications to apps on users' devices. For this to work, these conditions must be met:
-
-* Responsibility of an instance owner: `FCM_API_KEY` set on the instance. This can be obtained on the Firebase dashboard, in project settings, under Cloud Messaging, as "server key"
-* Responsibility of the app developer: Firebase added/enabled in the Android/iOS app. [See Guide](https://firebase.google.com/docs/cloud-messaging/)
-
-When the app obtains/refreshes a registration ID from Firebase, it needs to send that ID to the `/api/v1/devices/register` endpoint of the authorized user's instance via a POST request. The app can opt out of notifications by sending a similiar request with `unregister` instead of `register`.
-
-The push notifications will be triggered by the notifications of the type you can normally find in `/api/v1/notifications`. However, the push notifications will not contain any inline content. They will contain JSON data of this format ("12" is an example value):
-
-```json
-{ "notification_id": 12 }
-```
-
-Your app can then retrieve the actual content of the notification from the `/api/v1/notifications/12` API endpoint.