You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "George Chapman (JIRA)" <ji...@apache.org> on 2017/05/18 08:08:04 UTC
[jira] [Created] (CB-12829) Cant access the camera,
PictureSourceType.CAMERA defaults to gallery
George Chapman created CB-12829:
-----------------------------------
Summary: Cant access the camera, PictureSourceType.CAMERA defaults to gallery
Key: CB-12829
URL: https://issues.apache.org/jira/browse/CB-12829
Project: Apache Cordova
Issue Type: Bug
Components: cordova-plugin-camera
Environment: {code}
global packages:
@ionic/cli-utils : 1.1.2
Cordova CLI : 7.0.1
Ionic CLI : 3.1.2
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.1.2
@ionic/cli-plugin-ionic-angular : 1.1.2
Ionic Framework : ionic-angular 3.2.1
System:
Node : v7.5.0
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
{code}
Reporter: George Chapman
I am building an app using Ionic (v3.2.1) and the cordova-plugin-camera (latest) When i launch the camera using the below configuration instead of launching the camera as expected it launches the devices gallery:
{code}
destinationType : this.camera.DestinationType.DATA_URL,
sourceType : this.camera.PictureSourceType.CAMERA,
encodingType: this.camera.EncodingType.JPEG,
quality : 75,
targetWidth: 1000,
targetHeight: 1000,
allowEdit : false,
saveToPhotoAlbum: false
{code}
Oddly it opens up the "Recent" folder and then redirects to the "Camera" folder - which is an aside.
I have tried the following as suggested by the Ionic team (https://github.com/driftyco/ionic-native/issues/1578) but this did not resolve anything so they have suggested that i log the issue here:
{{cordova plugin rm cordova-plugin-camera}}
{{cordova platform rm android}}
{{cordova platform add android@latest}}
{{cordova plugin add cordova-plugin-camera@latest}}
I have tested on 2 devices both running Android 6.0.1 with the same results
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org