04-30-2019 04:48
04-30-2019 04:48
Hi, I'm trying to have my companion app and my local server communicate with the WebSocket API. When I try it with the simulator it works no problem, but when I try on my device I get this error message: Fitbit.CompanionHost.Bridge.Modules.EventTarget.JsEventModule.
Does anyone know what it means and how to fix it?
My companion app is on the same computer as my server, I made sure to allow internet communication in package.json and I tried with localhost and my IP.
I've also tried using fetch() and it also only works in the simulator. Otherwise, I get the error message "A connection with the server could not be established".
05-02-2019 13:59
05-02-2019 13:59
Have you enabled the internet permission in your package.json?
05-03-2019 00:25
05-03-2019 00:25
Yes, I even check in code with
me.permissions.granted("access_internet")