-2

this is my code and I don't know whats my problem :( please help me

enter image description here

nafashmn.ir
  • 111
  • 2
  • 2
  • 9

1 Answers1

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