Closed faci closed 1 month ago
This issue is stale because it has been open for 7 days with no activity.
For your info on this issue, the problem seemed to come from FileType: Audio
on the filePicker package ! So I just changed to custom. But I believe it's too bad, because that would be nice to be able to use this option on IOS and it works everytime ^^
Describe the bug I use the file_picker package (last actual version : 8.0.6) to get audio files on IOS. It works pretty well, but just not on the first load.. On the first load, it asks for apple music access and than when I select a file, the bytes attribute is empty. When I close and re-open it works.
Platform
Platform OS version IOS 17.5.1 -> I had the same problem in the previous versions
How are you picking?
I have the authorizations on the info.plist !
And I tried to add
PERMISSION_MEDIA_LIBRARY
in the PodfileDetails to reproduce the issue Just call the code above ! Make sure you didn't accept the apple music before.
Error Log returned value on the first selection:
FilePickerResult(files: [PlatformFile(path /private/var/mobile/Containers/Data/Application/356AB0F5-BFFC-4CE6-82FC-CF94BA1070E9/tmp/Danyl - Billie Eilish (clip officiel).m4a, name: Danyl - Billie Eilish (clip officiel).m4a, bytes: null, readStream: null, size: 0)])
error:
(-11850) Opération interrompue
Flutter Version details
flutter doctor -v
:More details When I use a
FileType.custom
and define the types of music I accept, it works, but it opens the normal file storage, while I really need to open apple Music selector, since the app I'm developing is mainly focus on music.I hope you have enough informations ! And the bug is clear ! thank you :)