Closed VladStarikovEk closed 1 week ago
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. What's weird is that the file picker does not work on my main (large) project, but works fine on a newly created test project.
How are you picking?
FilePicker.platform.pickFiles(
allowMultiple: true,
allowedExtensions: ['pdf'],
type: FileType.custom,
);
Output (Main Project):
D/FilePickerUtils(26411): Allowed file extensions mimes: [application/pdf]
D/FilePickerDelegate(26411): Selected type */*
I/FilePickerDelegate(26411): User cancelled the picker request
Output (Test Project):
D/FilePickerUtils(28311): Allowed file extensions mimes: [application/pdf]
D/FilePickerDelegate(28311): Selected type */*
I/FilePickerUtils(28311): Caching from URI: content://com.android.providers.media.documents/document/document%3A83
D/FilePickerUtils(28311): File loaded and cached at:/data/user/0/com.example.file_picker_test/cache/file_picker/dummy.pdf
D/FilePickerDelegate(28311): File path:[com.mr.flutter.plugin.filepicker.FileInfo@144d1d0]
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 ?
i got the same problem, and i found a way to solve it..
you can try changing android:launchMode="singleInstance" in /main/AndroidManifest.xml to android:launchMode="singleTop"
@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. The pull request is 35 commits behind, so I made my own fork for it.
@VladStarikovEk there's a pull request opened for the fix. Just got it into prod and users confirm it works. The pull request is 35 commits behind, so I made my own fork for it.
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.
For now I'm using this way to add file_picker
dependency:
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'm glad to report that the fix from this PR works. For now I'm using this way to add
file_picker
dependency:file_picker: git: url: https://github.com/melWiss/flutter_file_picker.git
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
Up
up
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
Pixel 7а, android 14 - same problem
Galaxy S22 Ultra, Android 14 - same problem. Can also add the FileType.audio is affected.
up
up
var localFile = await FilePicker.platform.pickFiles( type: FileType.custom, allowMultiple: false, allowedExtensions: ['pdf'], withData: true, );
poco f3 gt Android 13 - same problem
previously used to work but after changing to android:launchMode="singleInstance"
it gave this issue.
This fork works and solves this issue.
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.
Up
This issue is stale because it has been open for 7 days with no activity.
Bounce
This issue is stale because it has been open for 7 days with no activity.
Bounce, bad bot
What is the solution purposed for this? Not sure what about the consequences of limiting it for single. I recall that it could introduce some issues but don't remember which.
This issue is stale because it has been open for 7 days with no activity.
Bad bot
This issue is stale because it has been open for 7 days with no activity.
Bad bot
This issue is stale because it has been open for 7 days with no activity.
Bad bot
This issue is stale because it has been open for 7 days with no activity.
Bad bot
This issue is stale because it has been open for 7 days with no activity.
Bad bot
This issue is stale because it has been open for 7 days with no activity.
Yeah, we know it. Bad bot
This issue is stale because it has been open for 7 days with no activity.
This is becoming ridicolous. Bad bot!
up
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