I have the problem that I can't download an audio file with IOS, with Android everything works perfectly.
I check if the directory exists and if not I create it (works fine) but when I execute the command FileSystem.downloadAsync with IOS I get the error message [Error: Directory for 'file:///var/mobile/Containers/Data/Application/5EAC4BD5-CFE0-4542-9F26-F0BE6E76D160/Documents/MyFile.mp3' does not exist. Please make sure directory '(null)' exists before calling downloadAsync].
of course i made sure that the directory was created beforehand. As I said, the same code works on Android.
The only difference to Android is that the path to the location looks different.
For both, I use the path from FileSystem.documentDirectory + /MyPath/MyFile.mp3 to save the file.
I just can't find a solution, I would be happy if someone could help me.
I am using Expo SDK 48
UPDATE: I have now found out that it is the URL, as the file name contains special characters such as spaces and letters like "ä" and "ö". But it can't be that I save the file names in such a way that there are no spaces and letters like "ä" and "ö".
Is there no other solution that IOS accepts the URL as the files are named?