Writing a file to the filesystem no longer works in Android 15?

I had originally followed the exact code from here:

Back when I was using Android 14.

Now the share sheet does not open at all with this method. Im wondering what has changed?

I was originally using capacitor 7.4.3. I’ve also tried the new version and it does not change anything.

Cheers

1 Like

Android 15 changed how file access and sharing work. The old Capacitor 7 method may no longer trigger the share sheet. Update your code to use the new Filesystem and Share plugin APIs with proper permissions for Android 15, and ensure you request MANAGE_EXTERNAL_STORAGE or use scoped storage as required.

Thanks very much for the response. What is meant by “proper permissions” though?

Do you mean to add external storage requests in the manifest xml?
Is there any note on any of this anywhere?

You do this?

By default, Capacitor apps only allow to share files from caches folder. To make other Android folders shareable, they have to be added in android/app/src/main/res/xml/file_paths.xml file. Check the Specifying Available Files section in FileProvider docs for the available locations. - source

So is the github example there still valid?