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 115 forks source link

App crashes on Android 10 after downloading video #71

Open SanchezQb opened 4 years ago

SanchezQb commented 4 years ago

I tried the example using a video file as a URL, the app crashes after the download completes but the video file is still saved in the directory. Do you know what might be the cause?

Device: Samsung Galaxy S10e, running Android 10 Library version: ^0.19.2 Flutter version: v1.12.13+hotfix.6

windows7lake commented 4 years ago

also crash on Pixel 3 xl android 10

MoyaMaker commented 4 years ago

Same problem

mohdtaha60 commented 4 years ago

Same.. Any Solution?

Amal92 commented 3 years ago

same problem

Amal92 commented 3 years ago

I used Dio library to download and image_gallery_saver library to add to gallery.

S192-srushti commented 3 years ago

Same.. Any Solution? You need to ask for storage permission to save an image to the gallery. You can handle the storage permission using flutter_permission_handler. In Android version 10, Open the manifest file and add this line to your application tag

<application android:requestLegacyExternalStorage="true" .....>