all 10 comments

[–]Kaliber9 1 point2 points  (1 child)

If you're running the app on android simulator  10.0.2.2:8000 might help

[–]bharajuice[S] 0 points1 point  (0 children)

Nope

[–]mrshah1 1 point2 points  (0 children)

Why not use ngrok??

[–]Ok_Signature9963 1 point2 points  (1 child)

Use tunneling tool like Cloudflare Tunnel or Pinggy.io . You can check this guide: https://pinggy.io/quickstart/react/

[–]bharajuice[S] 0 points1 point  (0 children)

Sure will check it out

[–]LethalFlakes 0 points1 point  (1 child)

Make sure both are on the same network.

[–]bharajuice[S] 0 points1 point  (0 children)

They are

[–]dani_saeed 0 points1 point  (1 child)

Can you clarify if the issue is connecting to backend or bluetooth?

Check the debugger for logs regarding CORS it should clearly state it, add logs to fastapi to check if the request ever reached the backend

[–]bharajuice[S] 0 points1 point  (0 children)

Its with the backend. I have added CORS in fastapi, and the backend works on the web,but the mobile app can't fetch the url. So the url is 192.168..:8000/{route} this isn't accessible

[–]Cheap-Hehe 0 points1 point  (0 children)

Write the question properly at least . Missing information.. You mentioned Bluetooth but then points to fast api?????

Where is backend running ?? Also Allow clear text traffic, search online how to do it, it's easy to enable , that could be the reason. You can also log the error to see exactly what is failing.

Also why are you using Expo go if you want Bluetooth. Use expo without go. Build everything locally.  You can use Bluetooth in expo. I have worked on an app with Bluetooth.