(detect-platform token)Heuristic platform detection from token format. Returns :fcm, :apns, or nil.
Heuristic platform detection from token format. Returns :fcm, :apns, or nil.
(of-tenant tenant-id devices)(of-tenant tenant-id all-tenants? devices)Those of devices registered in tenant-id (BOU-946). Without one, those
registered in no tenant: a send that lost its tenant reached every tenant's
devices (BOU-985). all-tenants? is the operator's explicit reach.
Those of `devices` registered in `tenant-id` (BOU-946). Without one, those registered in no tenant: a send that lost its tenant reached every tenant's devices (BOU-985). `all-tenants?` is the operator's explicit reach.
(prepare-device-record user-id device-info id now)Pure: build device record from user-id and device-info. Caller supplies id and now.
Pure: build device record from user-id and device-info. Caller supplies id and now.
(stale-token? {:keys [last-used-at]} max-age-days now)Check if device token hasn't been used within max-age-days. Caller supplies current instant.
Check if device token hasn't been used within max-age-days. Caller supplies current instant.
(token-preview token)The first six characters of a device token, for logs. A full token lets anyone holding the provider credentials push to that device (BOU-556).
The first six characters of a device token, for logs. A full token lets anyone holding the provider credentials push to that device (BOU-556).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |