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

Should doc WP quirks with camera saveToPhotoAlbum

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      A customer was using navigator.camera.getPicture with

      {saveToPhotoAlbum: false}

      in the options. This was on WP7 and WP8, using Cordova 2.6. They stated that the photo was still being saved in the phone's camera roll, and they didn't think that should happen.

      I took a look at the source code for the camera plugin on WP, and the native code invokes Microsoft's CameraCaptureTask API. The MS doc for CameraCaptureTask states that it will always save the picture to the camera roll, and the only way to avoid that behavior is to use Microsoft's PhotoCamera API. I also looked at the Capture plugin, and it also uses CameraCaptureTask.

      http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394006(v=vs.105).aspx

      So the Camera docs should include quirk verbage that the saveToPhotoAlbum option has no effect on WP7/WP8 and the picture will always be stored in the camera roll.

      Perhaps the native code could also log a warning if it is invoked with saveToPhotoAlbum==false.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cmarcelk Marcel Kinard
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: