ko2ic / image_downloader

Flutter plugin that downloads images and movies on the Internet and saves to Photo Library on iOS or specified directory on Android.
https://pub.dartlang.org/packages/image_downloader#-readme-tab-
MIT License
92 stars 116 forks source link

Download image from a non-secured (HTTP) results in PlatformException - 400 #47

Closed Newbie012 closed 4 years ago

Newbie012 commented 4 years ago

I've noticed that when I try to download an image from a non-secured connection, I get a PlatformException (400), no matter if the domain/url exists or not.

In production, I'll have a secured connection in my backend, but in development, I use my localhost as the backend, and it's not https.

Any solutions?

Newbie012 commented 4 years ago

Hello?

ko2ic commented 4 years ago

@Newbie012 If you are on ios, please check ATS(App Transport Security).

Newbie012 commented 4 years ago

@ko2ic I'm on Android

ko2ic commented 4 years ago

If you are on Android9, please check https://stackoverflow.com/questions/51902629/how-to-allow-all-network-connection-types-http-and-https-in-android-9-pie