Free disk space on devices

We have an app that downloads a lot of data for offline use. We get the size of the data before download. Is there any way to get the available free space on the device?

I have searched everywhere but I can’t find anything - I would have thought this would be simple!

Capacitor’s Device Plugin in versions <= 6 included this in the getInfo method - Device Capacitor Plugin API | Capacitor Documentation. In v7 it was removed due to it requiring a Privacy Manifest for iOS - feat(device)!: remove disk size related information by jcesarmobile · Pull Request #2251 · ionic-team/capacitor-plugins · GitHub

You could look at the code and re-implement in your own plugin.

2 Likes

Damn - yes I had seen it and did not know why it was removed.

This is so annoying…