I made a cellular app utilizing Flutter. This app is knowledge heavy (API and map tiles).
It all the time works on Android, iOS simulators, and Home windows.
However on a bodily iOS machine, (each launch and debug modes), similar story:
- First launch runs nice.
- Subsequent runs have lacking knowledge/lacking map tiles
- In debugger, I’ve seen errors like these (probably chicken-egg):
Error: SocketException: Failed host lookup: 'web site.com' (OS Error: nodename nor servname offered, or not identified, errno = 8)
Error: SocketException: Connection failed (OS Error: Too many open information, errno = 24), handle = web site.com, port = 443
The above errors come within the lots of, since they’re associated to map tiles.
Nonetheless, earlier http requests (about 10) to the identical “web site.com” (API/JSON) don’t fail.
All the identical, I did a community examine at a high degree of the app and printed out the success for a similar “web site” that it claims “Failed host lookup” for.
- No noticeable time variations throughout app startup
- I’ve put in the app on to the machine, and through TestFlight.
- I’ve put in on iPhone 11 and 15.
- All software program and packages are updated.
- I’ve tried http and dio packages.
- My community is constantly quick.
Why does all the things work smoothy on first set up, however on subsequent runs, community requests fail and/or too many open information?
What does closing and re-opening the app 4 instances in a row “do” iOS-wise that constantly fixes the issue (for the session)?