cordova.file.applicationStorageDirectory requires permission. Is there an alternative?

1.7k Views Asked by At

I have static app assets that I keep in the www folder. I read the assets using cordova.file.applicationDirectory. On iOS it works perfectly, but on Android the user needs to grant permission access to the library.

When I store files in cordova.file.cacheDirectory and cordova.file.dataDirectory the user doesn't need to grant any permissions.

I don't want to bother the user with the permission dialog as I am only reading files from my own app bundle.

Is there an alternative place to store the files? The files should be included in the app and not downloaded.

Is it possible to put static assets in the cordova.file.dataDirectory? And if yes, how to I manually add files to the location?

0

There are 0 best solutions below