alihamza0173 / whatsapp_status_saver

A Flutter Project to Save Whatsapp Statuses to Gallery
5 stars 1 forks source link

make use of user privacy friendly storage api avoid MANAGE_EXTERNAL_STORAGE #1

Open 1MinuteAunty opened 3 months ago

1MinuteAunty commented 3 months ago

Hi, I have encountered a similar issue and managed to find a solution. In my project from statussaver, I addressed this by [using Storage Access Framework instead of MANAGE_EXTERNAL_STORAGE].

I hope this helps! @alihamza0173

alihamza0173 commented 1 week ago

Hi, thank you for raising this issue! I’ve finally had the chance to work on it and have made the necessary changes to remove the MANAGE_EXTERNAL_STORAGE permission. I've now implemented the Storage Access Framework (SAF) for directory access.

The app successfully obtains directory permission through SAF, and I'm able to fetch media files. However, I’m encountering an issue when trying to display the media in the UI—it throws an error related to media reading permissions. Interestingly, if I manually grant the "manage all files" permission from the app settings, the media displays correctly, even though I am accessing the files through SAF.

Could you please take a look at the code and let me know what might be going wrong? Your insights would be really helpful!

Thanks in advance!