Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9898

ios getPicture() doesn't store image permanently, only saves to temp directory

    XMLWordPrintableJSON

Details

    Description

      Camera options:

      • destinationType: Camera.DestinationType.FILE_URI,
      • saveToPhotoAlbum: true,
      • sourceType: Camera.PictureSourceType.CAMERA,

      Situation: getPicture() on iOS saves a newly taken image into the cordova.file.tempDirectory by default

      Problem: After closing & re-opening the app, the taken pictures are not available any more in the app - this functionality is only on iOS, all other platforms directly persist

      This requires for every camera usage a workaround on ios - Move the file to permanent storage after taking an image:
      http://www.joshmorony.com/store-camera-photos-permanently-using-phonegap-ionic-ngcordova/

      -> directly save the images in permanent storage on iOS

      Further mentions:
      http://stackoverflow.com/questions/33249522/angular-and-ionic-camera-function-wont-save-photo
      http://stackoverflow.com/questions/27910783/cordova-move-file-using-the-file-url

      Attachments

        Issue Links

          Activity

            People

              omefire Omar Mefire
              mobidev3 Michael Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: