[ 
https://issues.apache.org/jira/browse/CB-9898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981161#comment-14981161
 ] 

Shazron Abdullah commented on CB-9898:
--------------------------------------

This is correct, currently you can't have both FILE_URI and saveToPhotoAlbum -- 
I've verified with the code.
However, I don't see why you can't saveToPhotoAlbum with FILE_URI, all it 
requires is a call to UIImageWriteToSavedPhotosAlbum. I'm not sure the intent 
of the original implementor of the feature -- perhaps there was an issue, I 
can't recall.

https://github.com/apache/cordova-plugin-camera/blob/3a8880d0c3a45181539e7453f6a9ebf5def2b8eb/src/ios/CDVCamera.m#L461

> ios getPicture() doesn't store image permanently, only saves to temp directory
> ------------------------------------------------------------------------------
>
>                 Key: CB-9898
>                 URL: https://issues.apache.org/jira/browse/CB-9898
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 1.2.0
>            Reporter: Michael Schmidt
>              Labels: iOS
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to