-
Notifications
You must be signed in to change notification settings - Fork 505
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
BUG change status when loading is complete, API 28 (android 9) #907
Comments
you need to ask for WRITE_EXTERNAL_STORAGE permission |
It did not help I am use
even if I add these lines to the manifest, nothing will change
https://developer.android.com/about/versions/11/privacy/storage If your app targets Android 11, both the WRITE_EXTERNAL_STORAGE permission and the WRITE_MEDIA_STORAGE privileged permission no longer provide any additional access. Keep in mind that, on devices that run Android 10 (API level 29) or higher, your app can contribute to well-defined media collections such as MediaStore.Downloads without requesting any storage-related permissions. Learn more about how to request only the necessary permissions when working with media files in your app. |
did you request the permission? writing permission in manifest is not enough. also, check that permission is granted in app settings. |
I don't need permission because I'm saving the file to my phone's internal memory |
could you show the FlutterDownloader.enqueue method call and passed arguments? |
On api 29 I tried different installation paths, but the error persists
|
@DmitriySimonov yes the package having this issue sometimes. As of now, call your function if(progress == 100). |
When will this bug be fixed? |
When will this bug be fixed? |
flutter_downloader 1.11.4
BUG change status when loading is complete, API 28 (android 9)
I am attaching the logs
With 100% progress, the status should be DownloadTaskStatus.complete
On API 29-33 works correctly
flutter doctor -v
[✓] Flutter (Channel stable, 3.13.7, on Ubuntu 22.04.3 LTS 5.15.0-87-generic, locale ru_RU.UTF-8)
• Flutter version 3.13.7 on channel stable at /home/dmitriysi/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2f708eb839 (2 недели назад), 2023-10-09 09:58:08 -0500
• Engine revision a794cf2681
• Dart version 3.1.3
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1)
• Android SDK at /home/dmitriysi/androidStudio/sdk
• Platform android-34, build-tools 34.0.0-rc1
• Java binary at: /home/dmitriysi/androidStudio/android-studio/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 10.0.0-4ubuntu1
• cmake version 3.16.3
• ninja version 1.10.0
• pkg-config version 0.29.1
[✓] Android Studio (version 2022.3)
• Android Studio at /home/dmitriysi/androidStudio/android-studio
• Flutter plugin version 75.1.2
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] Connected device (3 available)
• AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 5.15.0-87-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.98
[✓] Network resources
• All expected network resources are available.
Code example:
The text was updated successfully, but these errors were encountered: