[ 
https://issues.apache.org/jira/browse/CB-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Björn Vermeule updated CB-6692:
-------------------------------

    Description: 
Google recently released the Android Camera as an app in the Play Store 
([Link|https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera]).
 It seems that the most recent version of Google Camera prevents Cordova to 
launch/connect to the app.

When removing Google Camera (and thus reverting to the system Camera) Cordova 
can successfully take pictures. Cordova fails when I reinstall Google Camera 
again.

Cordova fails with the error message "Can't connect to the camera." (see 
attached screenshot). The camera does start and I am able to take pictures 
(from the camera's point of view) but Cordova will always fail and call the 
error handler.

JavaScript code I'm using to launch the camera:

{code:JavaScript}
        navigator.camera.getPicture(
            function(imageData) {
                $('.taken-image').attr('src', imageData);
            },
            function() {
                alert('Picture has not been taken ...');
            }, {
                quality: 50,
                destinationType: Camera.DestinationType.FILE_URI,
                sourceType: Camera.PictureSourceType.CAMERA
            });
{code}

  was:
Google recently released the Android Camera as an app in the Play Store 
([Link|https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera]).
 It seems that the most recent version of Google Camera prevents Cordova to 
launch/connect to the app.

When removing Google Camera (and thus reverting to the system Camera) Cordova 
can successfully take pictures. Cordova fails when I reinstall Google Camera 
again.


> Launching the camera on Android fails with the Play Store version of (Google) 
> Camera.
> -------------------------------------------------------------------------------------
>
>                 Key: CB-6692
>                 URL: https://issues.apache.org/jira/browse/CB-6692
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.4.0
>            Reporter: Björn Vermeule
>         Attachments: Screenshot_2014-05-14-16-58-40.png
>
>
> Google recently released the Android Camera as an app in the Play Store 
> ([Link|https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera]).
>  It seems that the most recent version of Google Camera prevents Cordova to 
> launch/connect to the app.
> When removing Google Camera (and thus reverting to the system Camera) Cordova 
> can successfully take pictures. Cordova fails when I reinstall Google Camera 
> again.
> Cordova fails with the error message "Can't connect to the camera." (see 
> attached screenshot). The camera does start and I am able to take pictures 
> (from the camera's point of view) but Cordova will always fail and call the 
> error handler.
> JavaScript code I'm using to launch the camera:
> {code:JavaScript}
>         navigator.camera.getPicture(
>             function(imageData) {
>                 $('.taken-image').attr('src', imageData);
>             },
>             function() {
>                 alert('Picture has not been taken ...');
>             }, {
>                 quality: 50,
>                 destinationType: Camera.DestinationType.FILE_URI,
>                 sourceType: Camera.PictureSourceType.CAMERA
>             });
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to