app.studynext.pushSubscription

A push notification subscription (Expo push token or Web Push subscription), written into the owning user's own PDS by that device. Which of expoPushToken / (endpoint, keys) is present depends on `platform`. rkey = a per-install stable device id generated once and persisted locally (not derived from the token/endpoint themselves, since those rotate and contain characters outside the AT Protocol rkey charset). Re-registration upserts the same rkey via putRecord, so a device never accumulates duplicate records.

Repository @studynext.app did:plc:nstib2qjcu3tyun7cxz4dxcm namespace authority
Details · record, key any
Kindrecord
Record keyany
Authoritystudynext.app
Commit rev3n3kcoqiosc2t
Indexed
cid bafyreid4in7pmn2bgoo3lmjqiy3mesllplc3rzgwpuax464ssw4glp3vcm

Checks

Valid
  • unlimited-string defs.main.record.properties.platformNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "keys": {
      "description": "Web Push encryption keys. Present when platform=web.",
      "properties": {
        "auth": {
          "maxLength": 500,
          "type": "string"
        },
        "p256dh": {
          "maxLength": 500,
          "type": "string"
        }
      },
      "required": [
        "p256dh",
        "auth"
      ],
      "type": "object"
    },
    "main": {
      "description": "A push notification subscription (Expo push token or Web Push subscription), written into the owning user's own PDS by that device. Which of expoPushToken / (endpoint, keys) is present depends on `platform`. rkey = a per-install stable device id generated once and persisted locally (not derived from the token/endpoint themselves, since those rotate and contain characters outside the AT Protocol rkey charset). Re-registration upserts the same rkey via putRecord, so a device never accumulates duplicate records.",
      "key": "any",
      "record": {
        "properties": {
          "deviceId": {
            "maxLength": 100,
            "type": "string"
          },
          "endpoint": {
            "description": "Web Push endpoint URL. Present when platform=web.",
            "maxLength": 2000,
            "type": "string"
          },
          "expoPushToken": {
            "description": "Present when platform=expo.",
            "maxLength": 500,
            "type": "string"
          },
          "keys": {
            "ref": "#keys",
            "type": "ref"
          },
          "platform": {
            "knownValues": [
              "expo",
              "web"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "platform",
          "deviceId",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.pushSubscription",
  "lexicon": 1
}