(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.
(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.
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 |