0

My flutter app is running absolutely fine on Emulators and Simulators but when running on a real device, it is showing me Connection Timeout errors. Not sure what the issue is. Please note that the api is already hosted and I am not using localhost. I am using http package for making the api calls. I also have firebase performance integrated.

Everything was working fine before, but suddenly stopped working around 4 days back. Haven't made any new changes in the code. Please help!

Connection Timeout

Shrijan Regmi
  • 450
  • 5
  • 10

1 Answers1

0

Don't panic, Follow these steps.

  1. Close your emulator.
  2. Restart your IDE.
  3. flutter clean
  4. flutter pub get
  5. flutter run

If it doesn't work (it'll work) *

wipe your emulator data from Android Studio/Uninstall previous apk from physical device

  • (Ask google if you don't know).