Initial setup
First, you need to create a Manager user. Then in order to access data from a Device, you need to take ownership of the device.
Before creating Activities and Time frames, an Athlete user must have been created by/for the user of the device. This will allow him to control the use of his personal data, regardless of the Devices he has been using. Then the Manager must be granted the permission to create Time frames (write) and query them (read) by the Athlete.
Once that is done, the Manager may start retrieving Live streaming data.
To summarize:
- Create Manager user.
- Assign Ownership to the Device.
- Create Athlete user.
- Grant Manager READ and WRITE permissions to the Athlete's data.