dev.knotless.registerPush
Keeps, on the appview, a device to send the asking account's notifications to, from then on. A device already registered to another account moves to this one.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Commit rev | 3n23aipedasvp |
| Indexed |
Showing version bafyreifaeucpi333fi2poh3q4v2ums6lzif7x3fznjffahevoh5vtxfyz4. Show the latest
Procedure
procedure · POSTInput
application/jsonWhich of Apple's push services issued the token.
maxLength: 20knownValues: production | sandbox
key
stringA 32-byte AES-256-GCM key the device made, in base64. A private repository's notifications are sealed with it, for the app to open on the device; to a device without one, they name nothing.
maxLength: 100
The device's push token from Apple, in hexadecimal.
maxLength: 200
Output
application/jsonErrors
InvalidRequest
The token is not hexadecimal, the environment is not one this appview knows, or the key is not 32 bytes in base64.
AuthenticationRequired
No account is asking.
Similar 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.
-
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.didpic.notification.registerPush
procedureBind a device push token to the authenticated viewer.
-
social.grain.notification.registerPush
procedureRegister a device's push token for the viewer, as app.bsky.notification.registerPush does. Requires auth.
-
so.sprk.notification.registerPush
procedureRegister to receive push notifications, via a specified service, for the requesting account. Requires auth.