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 |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"errors": [
{
"description": "The token is not hexadecimal, or the environment is not one this appview knows.",
"name": "InvalidRequest"
},
{
"description": "No account is asking.",
"name": "AuthenticationRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"environment": {
"description": "Which of Apple's push services issued the token.",
"knownValues": [
"production",
"sandbox"
],
"maxLength": 20,
"type": "string"
},
"token": {
"description": "The device's push token from Apple, in hexadecimal.",
"maxLength": 200,
"type": "string"
}
},
"required": [
"token",
"environment"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {},
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Asks this appview to send the asking account's notifications to a device.",
"id": "dev.knotless.registerPush",
"lexicon": 1
}