The application directory contains the www folder of your app. However, that location is read only, so you won't be able to store your data in there. For storage, the file system root is a good choice. On ios, it correspond to the Documents directory, which is persistent read/write storage, i think it suits most app's needs. I'll still show how to access the application folder in case you're interested on accessing some files there.
When using the file plugin, you can access iOS's application inner folders using the cordova.file.applicationDirectory
location (for other iOS locations, check out the table at https://github.com/apache/cordova-plugin-file#ios-file-system-layout). Use it with resolveLocalFileSystemURI
, and it'll give a directory entry at said location to its success callback.
From there you can then access the www folder by using getDirectory
.
Short Example
window.resolveLocalFileSystemURI(cordova.file.applicationDirectory,
function(appDirectory) {
appDirectory.getDirectory("www", {create:false}, onSuccess, onFailure);
},
onFailure);