How do I set up realtime streaming?
Setup depends on the device.
Setup depends on the device. The BLE connection widget does not work for Apple Watch, which uses a custom Bluetooth protocol.
Apple Watch: requires a WatchOS companion app that calls
startStream()orstartExercise(). UsestartExercise()for the highest sampling frequency.BLE devices (Coros, Garmin, etc.): once the user connects via the widget, call
startRealtimewith the desired data types and receive updates in the callback.
Two things to keep in mind:
A websocket is only needed to stream data to your backend, not for local data types.
Realtime streaming is a separate connection from the standard data-sync authentication.
PreviousWhy was my app rejected over health permission justifications?
NextRouting, webhooks and destinations
Last updated
Was this helpful?