What's the purpose of the second argument of this funcion? It's always set to zero, but I've never found out what it's used for.
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, fail);
This text is from cordova.js:
@param size indicates how much storage space, in bytes, the application expects to need
It seems that requestFileSystem will fail if the availability of the disk is smaller than size param.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With