[
https://issues.apache.org/jira/browse/CB-12829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-12829.
-----------------------------
Resolution: Cannot Reproduce
I can't reproduce it using "@ionic-native/camera": "^4.17.0", and current
master branch of cordova-plugin-camera (which is 4.1.0-dev at the moment).
As your versions are older, try updating to latest versions.
If you still face the issue, please, report it on github as we have moved our
issues there https://github.com/apache/cordova-plugin-camera/issues
> 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: Android: 6.0.1, Cordova CLI : 7.0.1, Ionic CLI : 3.1.2,
> @ionic/cli-plugin-cordova : 1.1.2, Ionic Framework : ionic-angular 3.2.1
> Reporter: George Chapman
> Priority: Major
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]