Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot connect to developer bridge on android app

I have created an application that requires my companion to communicate with a websocket. I have gotten the app to work perfectly on the OS simulator, however when trying to connect my android phone to the developer bridge, I can only connect using phone data, eg. the connection doesn't work over WiFi. This is a problem as I am unable to get my websocket to work on phone data.

 

Specifically, when I toggle the switch under 'Developer Bridge' on the android app it says 'Connecting' for about 10 seconds, then it toggles itself off and goes back to 'Disconnected'.

 

Are there any fixes for this bug, or do people have suggestions for workarounds like a way for me to setup a websocket on my phone data (using ws:127.0.0.1:8080/ws:localhost:8080 returns a connection refused error,)? 

Best Answer
0 Votes
6 REPLIES 6

Forgetting about the ws for the time being, can you connect your phone to the dev bridge using WiFi at all? Get that working first, and then worry about using ws over the connection.

Peter McLennan
Gondwana Software
Best Answer

PS. I've managed to get ws://127.0.0.1:8080 to work. Note the //.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

(Sorry about my lack of knowledge I'm very new to fitbit dev and software dev in general)

 

I cannot connect my phone to the dev bridge using WiFi, only data. I have tried resetting my router, reinstalling the android app, resetting the Fitbit device (Versa 2 if that matters), and using firefox as the browser for fitbit studio (usually I use chrome). None of these seem to work, is there something else I should try? Is there any other information I'm missing that might help? 

Best Answer
0 Votes

I've never heard of a problem like that before. It seems like the common element (problem) is the router or upstream internet connection. I'm totally clutching at straws, but it might need 2.4 GHz WiFi and IPv4.

Peter McLennan
Gondwana Software
Best Answer

That's the solution!

 

My WiFi has a 2.4 GHz and a 5 GHz conection, and my wifi on the device was set up to the 2.4 GHz one, but my phone was connected to the 5 GHz one. Upon switching my phone WiFi to my 2.4 GHz connection (same as device) it works perfectly and I can connect to the dev bridge fine. 

 

Thanks for your help!

Best Answer

Wow! Straw clutched! 😀

Peter McLennan
Gondwana Software
Best Answer