-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter downloader is not working in Android 11. #488
Comments
Any update on this? |
Any solution yet? |
I'm not able to find any solution yet. |
For Flutter_Downloader If you are using API 29+(ANDROID 10 and Above) add the below code in AndriodManifest.xml
Like this
|
As you can see in the first thread, this is already added. It shows downloading and download complete in notification. But there are no files downloaded and cannot open anything from notification. Files are not there in internal storage as well. |
Confirm the permission before you download it to the device. PS. I have implemented it in Android 11. |
Same problem for me, it's showing downloaded, but it's not downloaded and not opening from notification panel |
I am unable to download file, specifically in Realme Phones, otherwise it is working fine for other phones. I am unable to find handler for, channel = In _handlers array this key is not there.
Where it is working for other phones, over there channel value is Below is the code of binding.dart inside services folder,
|
@arshadbarves , permission is already given. It is not working. I can clearly see app permission Files and Media is there. |
It is not working because of a depricated API. I was able to download the file finally. But it is not opening from notification |
@swafvan I was facing similar issue that on Android 11, after debugging for few days I got it that it's an issue with file name. |
I can confirm, there are no special characters in file name. It clearly
works in a normal browser.
…On Tue, 3 Aug 2021, 11:31 Jay Savsani, ***@***.***> wrote:
@swafvan <https://github.com/swafvan> I was facing similar issue that on
Android 11, after debugging for few days I got it that it's an issue with
file name.
from Android 11 filename cannot contain some special characters. So you
cannot use forbidden characters like colon (:), forward slash(/), backward
slash() etc.
Please check once if it was the problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#488 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDUBXEQDOWFBQRI5AXY7QTT26A5DANCNFSM47YFT6QA>
.
|
I am also able to download files but it is specifically not working for Oppo Phones. |
For Android 11, I am facing the same issues mentioned in the comment above. I have done extensive testing on this thinking it was a flaw in my code but doesn't look like so. I am triple checking for permissions (asking for "MANAGE_EXTERNAL_STORAGE" on Android 11), so this is not related to permissions. Surprisingly, this issue doesn't happen every time, the same files which couldn't be downloaded now, get successfully downloaded an hour later. Tested only on two OnePlus phone on Android 11. UPDATE: |
What is the solution ?
…On Sat, 11 Sep 2021, 19:06 HungHD, ***@***.***> wrote:
Closed #488
<#488>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#488 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDUBXGRTLDR3K6D7VMVWULUBNLMXANCNFSM47YFT6QA>
.
|
@dhavalshah007 Did you fix oppo problem? |
Yes, most of the China phone are not working with this plugin. Any solution yet? |
While I'm able to download and view the file successfully in Android 6 phone, it is not working in Android 11. In Android 11, both log as well as notification says file is downloaded successfully. But in Android 11, file is not actually saved in drive. Please find below code
AndroidManifest.xml
Dart code
final fldr = (Platform.isAndroid
? await getExternalStorageDirectory()
: await getApplicationSupportDirectory());
final taskId = await FlutterDownloader.enqueue(
url: url.toString(),
savedDir: fldr.path,
showNotification: true,
// show download progress in status bar (for Android)
openFileFromNotification:
true,
);
The text was updated successfully, but these errors were encountered: