this is my code and I don't know whats my problem :( please help me
Asked
Active
Viewed 40 times
-2

nafashmn.ir
- 111
- 2
- 2
- 9
-
Try using https instead of http – Muhtar Jul 01 '21 at 06:18
-
Check out this: https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android and https://stackoverflow.com/questions/64172791/flutter-insecure-http-is-not-allowed-by-platform#answer-65730723 – Ninja Jul 01 '21 at 06:26
-
@Muhtar i did , this is my result – nafashmn.ir Jul 01 '21 at 06:29
-
@Muhtar check run : https://file.io/5r5I6eoFJ3nx – nafashmn.ir Jul 01 '21 at 06:36
1 Answers
1
The system default does not allow insecure connections. If you want to use an insecure connection, follow the steps below.
For Android; Go main manifest.xml file (android->app->src->main->AndroidManifest.xml) Add the following line between the 'application' tags.
android:usesCleartextTraffic="true"
For iOS; Go info.plist file (ios->Runner->Info.plist) Add the following line between the 'dict' tags.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

Salih Can
- 1,562
- 1
- 9
- 18