Sure, I just compiled it for an IOS9 phone this morning
I have this code to take a picture (the controller adds $cordovaCamera to the dependencies) and display it on the screen
The plugin is:
org.apache.cordova.camera 0.3.6 "Camera"
$scope.takePicture = function() {
var options = {
quality : 75,
destinationType : Camera.DestinationType.DATA_URL,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 390,
targetHeight: 207,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false
};
$cordovaCamera.getPicture(options).then(function(imageData) {
$scope.imgURI = "data:image/jpeg;base64," + imageData;
var alertPopup = $ionicPopup.alert({
title: 'Thank You',
template: 'We will analyze the coupon and add it to your stack'
});
}, function(err) {
// An error occured. Show a message to the user
});
};
My template that invokes it:
<ion-tab title="Add" icon="ion-camera">
<ion-nav-view>
<ion-content>
<br/>
<center>
Have a coupon we don't know about?
<br/> Take a photo right here and we'll add it to
<br/> your coupon stack in a jiffy!
<br/>
<br/>
<button class="button" ng-click="takePicture()">Upload new coupon</button>
<br/>
<br/>
<img ng-show="imgURI !== undefined" ng-src="{{imgURI}}">
<img ng-show="imgURI === undefined" ng-src="img/placeholder.jpg" width="390px" height="207px">
</center>
</ion-content>
</ion-nav-view>
</ion-tab>