[Ionic - React] Filesystem.writefile gives no errors but is not working

The File API was changed in Android 10 and further changed in Android 11/12. We are updating the @capacitor/filesystem plugin to work with the newer APIs with Capacitor 4, but at the moment you can only save files to the Documents folder.

This StackOverflow link has a good explanation on the changes made to the permissions and how each API version is affected