cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-9193) [Camera] Add option to choose from library even if source is camera
Date Mon, 06 Jul 2015 22:50:05 GMT


ASF GitHub Bot commented on CB-9193:

Github user dpolivy commented on the pull request:
    @muratsu Valid question, thanks for starting the discussion. The Android implementation
is more like the Messages/Slack experience you highlight above. I think the "right" solution
here really depends on the app and the desired user experience. For me, camera is the 90%
usage scenario, but it's important to allow gallery upload, too. So the best UX is to launch
right into the camera UI, with an option to fall out into the gallery. That creates an extra
tap for only a smaller percentage of users, vs all users if we show a picker off the bat (e.g.,
like Android).
    Supporting better custom camera UI longer term may be a better way to solve this, but
there's no way to defer that to the app developer without requiring them to go build some
native components.
    To be honest, longer term I will likely fork this plugin, and replace the Android and
Windows Phone implementations with ones using the low level camera APIs to better replicate
the iOS approach, so I can build custom UIs on top of them that better match our usage scenarios.
But, as a first (quicker) stab, I'm trying it this way, and wanted to give the opportunity
to share this back as I can't imagine I'm the only one who would find this valuable.
    I'm curious to hear other's thoughts on this. Adding a more consistent "picker" UI which
can be implemented consistently on all platforms might be a viable alternative -- BUT it kills
the use case I mentioned above (which was my motivation for doing it in the first place).
Plus, that can sort of be done already today by having separate buttons in your HTML UI.

> [Camera] Add option to choose from library even if source is camera
> -------------------------------------------------------------------
>                 Key: CB-9193
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Camera
>            Reporter: Dan Polivy
> There are many scenarios where an app might allow a user to take a picture via the camera,
OR choose a photo from their library. With the current camera plugin implementation, the developer
must first present some type of chooser UI to allow the user to initiate either the camera,
or the library.
> A potentially more efficient approach is to launch the camera by default, and within
the camera UI provide an option to switch over to the library -- similar to the way the default
Camera app works in iOS.
> I am working on a PR to add this functionality via a new CameraOptions setting.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message