You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2016/08/22 12:06:20 UTC

[jira] [Commented] (CB-11322) iOS camera stops taking new photos after calling cleanup twice

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

Sergey Grebnov commented on CB-11322:
-------------------------------------

Looks like Camera api works correct and image returned in success callback is actually new. The problem here is that webview caches urls so after clean up you receive the same image name and webview doesn't update the image. Solution here is to use extra query param to disable cache:

L78: photo.src = imageUri; 
update with 
photo.src = imageUri + '#' + Date.now();


> iOS camera stops taking new photos after calling cleanup twice
> --------------------------------------------------------------
>
>                 Key: CB-11322
>                 URL: https://issues.apache.org/jira/browse/CB-11322
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.2.0
>         Environment: Cordova 6.2
> Cordova iOS Platform 4.1.1
> Camera Plugin 2.2.0
> Mac OSX Yosemite / XCode 7.3
> iOS 9.3.2
>            Reporter: Paul Hickman
>            Assignee: Sergey Grebnov
>         Attachments: cameratest.tar.gz
>
>
> If you 
> 1. Take a photo with source = CAMERA, target = FILE_URI
> 2. Cleanup
> 3. Take another photo with source = CAMERA, target = FILE_URI
> 4. Cleanup
> 5. Take another photo with source = CAMERA, target = FILE_URI
> Then the file returned in step 5 is the picture taken in step 3, not the picture taken in step 5.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org