06-11-2019 06:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-11-2019 06:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi, with Unity 3D engine I must develop a game app that read pedometer activity and heart rate tracked with Fitbit devices. Is possibile to read realtime device data? I read about a companion app to develop but how I can approch to this solution? I must develop 2 app, the companion and the unity game? What I understand is that with Web API, data are only available from fitbit cloud but logically not in realtime because of delay time for the upload.
Thanks a lot for your suggestions.
Answered! Go to the Best Answer.

Accepted Solutions
06-13-2019 02:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-13-2019 02:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Web API data won't be realtime. You'll need to develop an app for a Fitbit OS device like Versa or Ionic. You can then get the data on the device in realtime, send it to the companion using the Messaging API, then from the companion to a web server via fetch() or WebSocket. The server could be local on your network, provided the mobile phone can access it.

06-13-2019 02:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-13-2019 02:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Web API data won't be realtime. You'll need to develop an app for a Fitbit OS device like Versa or Ionic. You can then get the data on the device in realtime, send it to the companion using the Messaging API, then from the companion to a web server via fetch() or WebSocket. The server could be local on your network, provided the mobile phone can access it.

02-29-2020 06:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-29-2020 06:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
What do you recommend to trigger the message?
I was thinking about setInterval() but is there a better way to trigger the messaging api to get realtime data?

