-
Notifications
You must be signed in to change notification settings - Fork 724
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
Unable to pick files with custom
or any
file type on Android 14
#1404
Comments
This issue is stale because it has been open for 14 days with no activity. |
I am also experiencing this issue, but in my case it occurs on my Pixel 4A Android 13. How are you picking?
Output (Main Project):
Output (Test Project):
|
This issue is stale because it has been open for 14 days with no activity. |
@VladStarikovEk Did you manage to solve this ? If so, how ? |
@TheCarpetMerchant Sadly - no. We still experiencing it. |
@VladStarikovEk there's a pull request opened for the fix. Just got it into prod and users confirm it works. |
Will try it. Thanks! |
This issue is stale because it has been open for 14 days with no activity. |
I'm glad to report that the fix from this PR works. file_picker:
git:
url: https://github.com/melWiss/flutter_file_picker.git |
This issue is stale because it has been open for 14 days with no activity. |
I confirm it's also working on my Samsung Galaxy when upgraded to Android 14 |
This issue is stale because it has been open for 14 days with no activity. |
Up |
This issue is stale because it has been open for 14 days with no activity. |
Up |
up |
Could someone close and reopen this. The notifications are annoying me. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
I am still facing these issue can anyone give me a solution for these???. |
@melWiss would it be possible for you to rebase your branch to have the latest changes with your fixes? Thanks! |
Turns out to be an easy, one line fix, so I made my own fork: https://github.com/henry-hiles/flutter_file_picker |
hey, sorry I just saw the notification and totally forgot about this issue (in our codebase we used our fork directly), is your fork merged to main? @Henry-Hiles
|
No, similar PRs were made in the past and not accepted, so I'm just using my fork. I was using yours before, but I needed a more up-to-date fork. Thanks! |
@miguelpruivo I also, to this day since 2 years ago, have been using my own fork in order to work around this problem. |
I think it breaks compatability with older android versions. |
it's broken anyways |
Broken here as well. Trying to pick a .zwo file. It works on older android devices, but not newer devices. |
You can use my fork: https://github.com/henry-hiles/flutter_file_picker I think it may break compatability with older android versions though. |
@Henry-Hiles : proposal: could you add Android version check and use the former behaviour for older platforms ? According to https://developer.android.com/training/data-storage/shared/documents-files the new behaviour is supported for API level 19 and above: if(Build.VERSION.SDK_INT >= 19) {
intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
} else {
intent = new Intent(Intent.ACTION_GET_CONTENT);
} See also https://developer.android.com/reference/android/os/Build.VERSION#SDK_INT I think, this would also qualify as pull request for this repository. |
any news on this issue? |
…, package_info_plus, syncfusion_flutter_charts Transitive upgrade audioplayers_android, audioplayers_linux, device_info_plus_platform_interface, syncfusion_flutter_core
Its working on older version for me tried |
Describe the bug
When picking files with
custom
orany
file type on Android 14, when one or multiple files are picked it just closes assuming that the user closed it. I also gotI/FilePickerDelegate(21624): User cancelled the picker request
message in logs.When picking
image
,audio
,video
ormedia
everything works fine, but the picker has agallery
UI, rather thenfile explorer
UI. I also checked this on Android 13 emulator - it works file there.Platform
Platform OS version
Pixel 5 - Android 14
How are you picking?
or
Details to reproduce the issue
Error Log
Screenshots and/or video
https://github.com/miguelpruivo/flutter_file_picker/assets/99865323/ade3be44-b8f9-48b8-a509-d7aff62de0ad

Flutter Version details
Additional context
Requested permissions in
AndroidManifest
The text was updated successfully, but these errors were encountered: