Dhanraj Nimbalkar
Dhanraj Nimbalkar

Reputation: 85

Flutter released app is not supporting http ( not https ) request in android version 10

Flutter app does not load content that needs to be fetched by API call. My server is http://{ serverIP }/. While live debuging it loads the content on all devices without any issue. but after release, it only works on the device which has an android version. I tried this android:usesCleartextTraffic="true" but did not solve that issue.

Upvotes: 1

Views: 740

Answers (1)

Nazarudin
Nazarudin

Reputation: 1067

add android:usesCleartextTraffic="true"to AndroidManifest.xml

androidmanifest.xml

then follow this step:

  1. stop your app
  2. flutter clean
  3. flutter pub get
  4. run your app again

it solves my problem a few days ago.

Upvotes: 4

Related Questions