Insecure HTTP is not allowed by platform: http://10.0.2.2:3000 flutter code example
Example 1: flutter Insecure HTTP is not allowed by platform
// In android/app/src/main/AndroidManifest.xml, set usesCleartextTraffic to true.
<application
...
android:usesCleartextTraffic="true"
... >
// Info.plist (IOS / macOS):
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Example 2: flutter insecure http is not allowed by platform
Flutter insecure HTTP is not allowed by platform