title: ionic front camera does not open
body: <p>Using ionic plugin "name": "cordova-plugin-camera","version": "2.2.0". I am not getting front facing camera but opens back facing camera, also tried with  cameraDirection : 1 as described on the <a href="http://ngcordova.com/docs/plugins/camera/" rel="nofollow">link</a> but it results in back facing camera. i have tested on Android 4.4 and 5.1
  is there any way to get front facing camera open by switching or any other way or any fix?</p>
  
  <p>Also debugged straight inside camera plugin code as on the <a href="https://github.com/apache/cordova-plugin-camera/blob/master/www/Camera.js" rel="nofollow">link</a> here i also got cameraDirection = 1 which is for front facing camera, but unable to resolve the problem.</p>
  
  <pre><code>$ionicPlatform.ready(function() {
    //camera settings
    $rootScope.options = {
      quality: 50,
      destinationType: Camera.DestinationType.DATA_URL,
      sourceType: Camera.PictureSourceType.CAMERA,
      encodingType: Camera.EncodingType.JPEG,
      targetWidth: 100,
      targetHeight: 100,
      popoverOptions: CameraPopoverOptions,
      saveToPhotoAlbum: false,
      correctOrientation:true,
      cameraDirection : Camera.Direction.FRONT
    };
    $cordovaCamera.getPicture($rootScope.options).then(function cameraSuccess(imageData) {
      $rootScope.imageData = imageData;
    },function cameraError(err){
      console.log(err);
      $rootScope.imageData = '';
    })
  })
  </code></pre>