Recently while working & testing on my own app Zbotics (That assist with Robot Voice when to do what to my family member) which has been made by flutter 2, I have found that App loads data using http.get properly in IOS Simulator & real device but it was not working in Android Device at anyhow.
As, I am novice in this Flutter, it took so much time to figure out the exact solution.
It is located in android/src/main/AndroidManifest.xml, add the highlighted text
<manifest xmlns:android...>
...
<uses-permission android:name="android.permission.INTERNET" />
<application ...
</manifest>
The solution has been described in Flutter website also: https://flutter.dev/docs/development/data-and-backend/networking
Similiar Post is on Stackoverflow : https://stackoverflow.com/questions/64120563/flutter-android-http-get-never-returns-in-release-mode
There are 0 comments