PushSubscription
Represents a subscription to the push streaming server.
Example
Required attributes
id
id
Description: The id of the push subscription in the database. Type: String (cast from an integer, but not guaranteed to be a number) Version history: Added in 2.4.0
endpoint
endpoint
Description: Where push alerts will be sent to. Type: String (URL) Version history: Added in 2.4.0
server_key
server_key
Description: The streaming server's VAPID key. Type: String Version history: Added in 2.4.0
alerts
alerts
Description: Which alerts should be delivered to the endpoint
.
Type: Hash
Version history: Added in 2.4.0. alerts[poll]
added in 2.8.0.
alerts[follow]
alerts[follow]
Receive a push notification when someone has followed you? Boolean.
alerts[favourite]
alerts[favourite]
Receive a push notification when a status you created has been favourited by someone else? Boolean.
alerts[mention]
alerts[mention]
Receive a push notification when someone else has mentioned you in a status? Boolean.
alerts[reblog]
alerts[reblog]
Receive a push notification when a status you created has been boosted by someone else? Boolean.
alerts[poll]
alerts[poll]
Receive a push notification when a poll you voted in or created has ended? Boolean. Added in 2.8.0
See also
Last updated
Was this helpful?