How to update Live Activities from a server
- Define
ActivityAttributesand aContentStatethat your Lock Screen UI can render. - Start the activity on device with
LiveHive.start()(orActivity.request+LiveHive.register). - For first success, open the activity in the Live Hive dashboard and tap Send test update. No backend required.
- When your domain state changes, your backend POSTs a Live Hive update whose
content_statematches that struct. - When the job is done, send an end event.
With Live Hive, token registration is register and HTTP updates are update and end. You still add a Widget Extension. Machine-readable: /llms.txt, /openapi.json.