blog.brookie.atprotify.registerPush
Register a device to receive push notifications for the authenticated account, or update its preferences. Requires service auth bound to this method. Calling it again for the same platform and token updates the registration.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | atprotify.brookie.blog |
| Commit rev | 3n2s2imvl7k2b |
| Indexed |
Showing version bafyreih7hgkzljf2gvpwxdjilvvh2upyogsamkj76lede5lamiq23iswmy. Show the latest
Procedure
procedure · POSTInput
application/jsonappId
stringThe app's bundle ID for APNs. Must be one the relay allows.
disabledRules
arrayRule IDs this device doesn't want. Omit to keep the current list.
followsOnly
arrayRule IDs this device wants only from accounts its owner follows. Needs a relay with a follows lookup (listRules says). Omit to keep the current list.
mutedActors
arrayAccounts whose activity never notifies this device. Omit to keep the current list.
maxLength: 10000
knownValues: apns | fcm | ntfy
revokeChat
booleanLet go of the account's direct-message grant (see the chat handoff at the service's authUrl), revoking it at its sign-in server.
sandbox
booleanUse the APNs development environment (debug builds).
subscriptions
arrayAccounts whose new records this device wants, for rules with subscribers. Omit to keep the current list.
maxLength: 10000
APNs device token (hex), FCM registration token, or ntfy topic.
maxLength: 4096
Output
application/jsonschema
refSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Registers a device for push notifications.
-
app.didpic.notification.registerPush
procedureBind a device push token to the authenticated viewer.
-
Registers a push endpoint for the requesting user's device. Web Push requires endpoint, p256dh, and auth. FCM requires token. APNs requires token and environment.
-
app.bsky.notification.registerPush
procedureRegister to receive push notifications, via a specified service, for the requesting account. Requires auth.
-
so.sprk.notification.registerPush
procedureRegister to receive push notifications, via a specified service, for the requesting account. Requires auth.