Good afternoon people.
I am trying to save files to a public directory but so far without success. I already saved and recovered internally in the app without any problems, but I wanted to save it in a public directory.
I use Xamarin Forms, I am developing an app for Android and iOS similar to WhatsApp. I wanted to save in a public directory for two reasons.
1- To be like WhatsApp that creates a directory at the root with all media files, it is easy for the user to access that directory, backup, clean and etc.
2- I am using Xam.Plugin.SimpleAudioPlayer (https://github.com/adrianstevens/Xamarin-Plugins/issues/75) to play the audio files, it works very well, but on devices with Android 10 it is not playing, error (Prepare failed .: status = 0x1) when trying to play the file. I imagine it is because of the new permissions on Android 10. If the file were in a public directory it would probably work.
Anyway, I've tried everything to save a file in a public directory and so far I haven't been able to. Does anyone know how to do this?
Below are some of the tests I've done via DependencyService: