Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.6.0
-
None
-
None
-
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
- is related to
-
CB-2083 Cordova for WP8 getPicture Leaves Photos in Camera Roll
- Closed