04-30-2018 23:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-30-2018 23:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
Is there a call to check whether the phone is connected? If the companion app isn't going to open I'd like my app to be able to move on and get to work locally.
Thanks,
Kev

04-30-2018 23:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2018 23:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
There isn't a specific API for this at the moment, but you could check the peerSocket state.
import * as messaging from "messaging"; // Some time later
if (messaging.peerSocket.readyState === messaging.peerSocket.CLOSED) {
// Not connected to mobile
}
https://dev.fitbit.com/build/guides/communications/messaging/

10-05-2020 20:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-05-2020 20:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
