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

Apoorv Saxena commented on CB-11295:
------------------------------------

Issue replicated: 
http://stackoverflow.com/questions/33546740/cordova-image-picker-plugin-for-windows

> Cordova app navigates to home screen when fetching image from PhotoLibrary
> --------------------------------------------------------------------------
>
>                 Key: CB-11295
>                 URL: https://issues.apache.org/jira/browse/CB-11295
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>            Reporter: Apoorv Saxena
>              Labels: camera, cordova-6.0.0, windows-universal
>
> **Use Case**: Choose image from Gallery and execute callbacks
> **Issue**: Redirection to Home screen of the app after image selection from 
> Gallery.
> Getting image from Camera works:
>     navigator.camera.getPicture(function() {
>       console.log('success'); 
>     },function() {
>       console.log('failure'); 
>     } , {
>       destinationType: Camera.DestinationType.DATA_URL
>     });
>     
> Choosing image from Gallery redirects to the homescreen
>     
>     navigator.camera.getPicture(function() {
>       console.log('success'); 
>     },function() {
>       console.log('failure'); 
>     } , {
>         destinationType: navigator.camera.DestinationType.FILE_URI,
>       sourceType: navigator.camera.PictureSourceType.SAVEDPHOTOALBUM
>     });
> The code is fairly simple and is mentioned at many places to give an example 
> of how to choose image from Gallery. This code doesn't work on any screen 
> other than the home screen of App. Also, no errors are reported before 
> redirection.
> The following code also results in redirection to the homescreen after image 
> selection.
>     <input type="file" name="">
> Configuration:
>     Device: Windows Lumia 535
>     Device OS Version: 8.1
>     Cordova: 6.1.1 
>     Cordova plugin camera: 2.2.0



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

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

Reply via email to