By implementing this simple change, you can achieve multiple results with one simple change: de facto you wouldn't need this anymore, as native apps could communicate with the watch via companion apps: https://community.fitbit.com/t5/Feature-Suggestions/Fitbit-BLE-API/idc-p/2219115 it would take care of this as well: https://community.fitbit.com/t5/Feature-Suggestions/Background-notifications-for-Ionic-apps/idi-p/2184239 Simple solution, a listen() method that takes a port and a function. The implementation will spin a thread that opens that port and listen to it and invokes the function. Example: // my companion app code
listen(8080, function(data) { // data can be a byte array or a string
if (data == "ping") {
// send a message to the watch
}
) From a native app perspective it would be a simple as sending a message to a TCP port. Perfectly cross-platform, simple straightforward solution.
... View more