mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
feat(devices): accept a Live Activity push token on registration
Add an optional hex liveActivityPushToken to device registration. The iOS client registers the current per-Activity ActivityKit push token so the server can address a Live Activity update or end push on a medication-intake mutation, and sends null to clear it when no Activity is running. Following the medicationDelivery override convention, the field is only touched when present, so an ordinary re-register keeps the prior value. Regenerate the OpenAPI contract.
This commit is contained in:
1 parent
836fd7405e
commit
6d8dd75fff
4 files changed
+85
No files matched your search
@@ -5874,6 +5874,16 @@ components:
|
||||
- server
|
||||
- client
|
||||
- type: "null"
|
||||
liveActivityPushToken:
|
||||
description: v1.17.1 (#22) hex-encoded ActivityKit Live Activity push token (distinct from the device APNs token). The
|
||||
server addresses a Live Activity update / end push on a medication-intake mutation. Omitted = keep the prior
|
||||
value; null = clear it when the Activity ends.
|
||||
anyOf:
|
||||
- type: string
|
||||
minLength: 8
|
||||
maxLength: 256
|
||||
pattern: ^[A-Fa-f0-9]+$
|
||||
- type: "null"
|
||||
required:
|
||||
- token
|
||||
- bundleId
|
||||
|
||||
Reference in new issue
Block a user