You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Becky Gibson (Created) (JIRA)" <ji...@apache.org> on 2012/04/13 21:18:16 UTC

[jira] [Created] (CB-506) images taken via Camera.getPicture do not get deleted

images taken via Camera.getPicture do not get deleted
-----------------------------------------------------

                 Key: CB-506
                 URL: https://issues.apache.org/jira/browse/CB-506
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.6.0
            Reporter: Becky Gibson
            Assignee: Shazron Abdullah


images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290552#comment-13290552 ] 

Shazron Abdullah commented on CB-506:
-------------------------------------

Thread here: http://apache.markmail.org/thread/eyqw32hb7yvrlndm

As stated in the thread, I'll implement the clean() function, which other platforms will just noop.
                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>             Fix For: 1.9.0
>
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Becky Gibson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253660#comment-13253660 ] 

Becky Gibson commented on CB-506:
---------------------------------

see https://groups.google.com/forum/?fromgroups#!topic/phonegap/qmFChwiB0To
                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-506:
--------------------------------

    Component/s: Docs
                 CordovaJS
    
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, BlackBerry, CordovaJS, Docs, iOS, WP7
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>             Fix For: 1.9.0
>
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-506:
--------------------------------

    Component/s: WP7
                 BlackBerry
                 Android

Added all platforms to the discussion. 

All platforms need to discuss adding a clean() method or something to that effect to fix this. Note: devs can use the File APIs to clean this up, but it will be better if we provide a convenience function, if not in native, then in JS.
                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-506:
--------------------------------

    Fix Version/s: 1.9.0

Tentatively assigning to 1.9.0 version
                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>             Fix For: 1.9.0
>
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Anthony Keller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260136#comment-13260136 ] 

Anthony Keller commented on CB-506:
-----------------------------------

Would it be possible to parameterize where the image is stored from camera.getPicture - i.e. temporary or persistent storage?  If persistent is selected the image is stored in a persistent folder; if temporary is selected the image is stored in the tmp folder.
                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-506.
---------------------------------

    Resolution: Fixed

iOS commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/d8afe9b4

cordova-js commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/5f70310f

docs commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/bd672708


                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, BlackBerry, CordovaJS, Docs, iOS, WP7
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>             Fix For: 1.9.0
>
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-506) images taken via Camera.getPicture do not get deleted

Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267530#comment-13267530 ] 

Filip Maj commented on CB-506:
------------------------------

Since Camera.getPicture is a PhoneGap API not based on any W3C spec, we can make whatever changes we deem necessary.

That said, there were plans to deprecate this API and suggest to users to roll with the Capture API, which, as far as I understand, does not take into account any of the issues brought up here.
                
> images taken via Camera.getPicture do not get deleted
> -----------------------------------------------------
>
>                 Key: CB-506
>                 URL: https://issues.apache.org/jira/browse/CB-506
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, BlackBerry, iOS, WP7
>    Affects Versions: 1.6.0
>            Reporter: Becky Gibson
>            Assignee: Shazron Abdullah
>
> images taken with camera.getPicture are stored in the temporary directory. There is code in applicationWillTerminate to delete the temporary directory.  However, in a multitasking app this method is never called.   The contents of this directory do not get backed up, but it is also not getting deleted.  Seems like the only solution is to require the developer to clean out the temp directory since they know when it is appropriate to do so.  We can leave the code in applicationWillTerminate for apps which set UIApplicationExistsOnSuspend in the plist since it IS called.  
> Could discuss adding a method to Camera to do clean up rather than requiring devs. to use the File api's.  Will need to negotiate with other platforms to see if this makes sense.  Will add a dependency in Camera to File Plugin.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira