fluttercommunity / fluttercommunity/flutter_downloader

Download is not working in IOS Simulator

Open
#465 18 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

We have implemented flutter_downloader library for downloading the either jpg/pdf files. Its working fine in Android Devices. But when we are trying to download in IOS Simulator we'r getting the error : **URLSession:task:didCompleteWithError**: in xCode.

For IOS , followed the complete guidelines which has mentioned in the library documentation.

IOS Version : 14.4

String savedDirPath = Platform.isAndroid
? await ExtStorage.getExternalStoragePublicDirectory(
ExtStorage.DIRECTORY_DOWNLOADS)
: (await getApplicationDocumentsDirectory()).path;

await FlutterDownloader.enqueue(
url: baseURL + downloadUrl,
savedDir: savedDirPath,
showNotification: true,
openFileFromNotification: true,
);

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.