Apache Cordova
  1. Apache Cordova
  2. CB-1215

Select multiple photos from photo album using camera.getPicture()

    Details

      Description

      I've been using camera.getPicture() to select a photo from the user's phone gallery and it works great when all I want is to select one photo. But several of my users have requested the ability to select multiple photos in a single selection. I've seen other apps show a photo picker that allows the user to select multiple photos by clicking on them and then it adds a check mark next to each one and selects all of the photos that the user checked.

      As far as I can tell, this functionality doesn't currently exist but Simon MacDonald told me to submit an enhancement ticket because the functionality is possible but just hasn't been implemented.

        Issue Links

          Activity

          Hide
          Shazron Abdullah added a comment -

          For iOS, we can't do it with UIImagePickerController (which the core Camera plugin uses) - it is single selection only. We would have to "roll our own" using ALAssetsLibrary: https://developer.apple.com/library/ios/#DOCUMENTATION/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40009722

          I suppose someone can create a plugin: http://www.icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/

          Show
          Shazron Abdullah added a comment - For iOS, we can't do it with UIImagePickerController (which the core Camera plugin uses) - it is single selection only. We would have to "roll our own" using ALAssetsLibrary: https://developer.apple.com/library/ios/#DOCUMENTATION/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40009722 I suppose someone can create a plugin: http://www.icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/
          Hide
          Joe Bowser added a comment -

          Yeah, I don't see this being implemented in the core APIs any time soon, since this would require a change to the Javascript API across all the platforms. If you want to avoid that, I would recommend writing a plugin.

          Show
          Joe Bowser added a comment - Yeah, I don't see this being implemented in the core APIs any time soon, since this would require a change to the Javascript API across all the platforms. If you want to avoid that, I would recommend writing a plugin.
          Hide
          Joe Bowser added a comment -

          Incoming API change request

          Show
          Joe Bowser added a comment - Incoming API change request
          Hide
          Filip Maj added a comment -

          Setting to Cordova-JS and dropping priority. This is an api change/addition request.

          Show
          Filip Maj added a comment - Setting to Cordova-JS and dropping priority. This is an api change/addition request.
          Hide
          Filip Maj added a comment -

          Added this to our API audit article: http://wiki.apache.org/cordova/Core%20API%20Audit

          Show
          Filip Maj added a comment - Added this to our API audit article: http://wiki.apache.org/cordova/Core%20API%20Audit
          Hide
          Peter Carabeo-Nieva added a comment -

          Filip, Thanks for adding this to the Core API Audit, this is a very much needed feature and it really should be implemented soon given the maturity of Apache Cordova

          Show
          Peter Carabeo-Nieva added a comment - Filip, Thanks for adding this to the Core API Audit, this is a very much needed feature and it really should be implemented soon given the maturity of Apache Cordova
          Hide
          Scharlatan Charcoal added a comment -

          Thank you so much for adding it to the Core Audit. Is there any date on the horizon when we can expect that feature? Given my project's deadline I might need to reconsider the approach otherwise..

          Show
          Scharlatan Charcoal added a comment - Thank you so much for adding it to the Core Audit. Is there any date on the horizon when we can expect that feature? Given my project's deadline I might need to reconsider the approach otherwise..
          Hide
          Julien Faltot added a comment -

          Looking forward to it too.

          Show
          Julien Faltot added a comment - Looking forward to it too.
          Hide
          Peter Carabeo-Nieva added a comment -

          This has been a very long standing issue and still hasn't even been added to a particular fix version / roadmap. Will this ever be addressed?

          Show
          Peter Carabeo-Nieva added a comment - This has been a very long standing issue and still hasn't even been added to a particular fix version / roadmap. Will this ever be addressed?
          Hide
          Filip Maj added a comment -

          The API audit will happen after 3.0, which is slated for July.

          Show
          Filip Maj added a comment - The API audit will happen after 3.0, which is slated for July.
          Hide
          Peter Carabeo-Nieva added a comment -

          Thanks for the quick update nonetheless. This helps me to set expectations and continue with my workarounds for the meantime.

          Show
          Peter Carabeo-Nieva added a comment - Thanks for the quick update nonetheless. This helps me to set expectations and continue with my workarounds for the meantime.
          Hide
          Filip Maj added a comment -

          Set to camera plugin

          Show
          Filip Maj added a comment - Set to camera plugin
          Hide
          Filip Maj added a comment -

          Just to clarify, the API audit's goal is to re-evaluate the various device APIs available in cordova with respect to leading open web standards work being done to formalize the APIs. I imagine we will be re-evaluating these APIs vs. the W3C WebApps and SysApps working groups' specs (at the minimum).

          Show
          Filip Maj added a comment - Just to clarify, the API audit's goal is to re-evaluate the various device APIs available in cordova with respect to leading open web standards work being done to formalize the APIs. I imagine we will be re-evaluating these APIs vs. the W3C WebApps and SysApps working groups' specs (at the minimum).
          Hide
          Paul van der Laan added a comment -

          It has been a while since there has been any activity in this issue. Any idea if we can ever expect this feature to be added to Apache Cordova? Would be awesome!

          Show
          Paul van der Laan added a comment - It has been a while since there has been any activity in this issue. Any idea if we can ever expect this feature to be added to Apache Cordova? Would be awesome!
          Hide
          Tolga Özses added a comment -

          Yeah, I've been looking forward to it as well.

          Show
          Tolga Özses added a comment - Yeah, I've been looking forward to it as well.
          Hide
          Alexander added a comment -

          It's really necessary feature.

          Show
          Alexander added a comment - It's really necessary feature.

            People

            • Assignee:
              Unassigned
              Reporter:
              Zack Boman
            • Votes:
              7 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:

                Development