Do I need any extra permission for IOS app to store images?


#1

Hi,
I’m developing an IOS app and I’m about to send it for review to apple store.

I have small issue I’m using cordova-file plugin to save images in localstorage

Example code:

download = function(URL, Folder_Name, File_Name) {

  window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, fileSystemSuccess, fileSystemFail);

  function fileSystemSuccess(fileSystem) {
    var download_link = encodeURI(URL);
    var directoryEntry = fileSystem.root; // to get root path of directory
    directoryEntry.getDirectory(Folder_Name, { create: true, exclusive: false }, onDirectorySuccess, onDirectoryFail); // creating folder in sdcard
    var rootdir = fileSystem.root;
    console.log(rootdir);
    var fp = rootdir.toURL(); ; // Returns Fulpath of local directory
    console.log(fp);
    fp = fp + "/" + Folder_Name + "/" + File_Name + ".jpg"; // fullpath and name of the file which we want to give
    // download function call
    filetransfer(download_link, fp, File_Name);
  }

While running the app in xcode using 'meteor run ios-device' it is showing following message

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read “iOS Data Storage Guidelines” at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to “local” in the Cordova config.xml file

Do I need to add any extra permssions for this? I’m just saving images in my app directory ( correct me if I’m wrong, I’m using the same code above).

If I need to add any extra permssion, how do it?

Any help appreciated.