Ignore the HTTP issue catch
Android:
In flutter_project/android/app/src/main/AndroidManifest.xml
Add
<application
....
android:usesCleartextTraffic="true"
....>
IOS:
In flutter_project/ios/Runner/info.plist
Add
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Run flutter clean. Then, run the app.
Comments
Post a Comment