Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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/
Best Answer