This happens in android emulator. Android emulator might think a certain connection is insecure. It’s due to using http rather than https. But for some reason if you really have to use http rather than https, then try the below solution
Emulator setting
And then uncheck the setting here
The above setting should solve your problem.
How is solving the solve pub gets failed (server unavailable) — attempting retry 1 in 1 second… problem.
hey your tuto was amazing but i just had a problem in loading data from database everything is correct the data base and the code but it doesn’t appear in the apk it keeps loading any solution
Maybe you should do 10.0.2.2 for android as base url