I have add the following custom camera plugin through ionic CLI however it cannot seem to find the getPicture method. Here is my controller
.controller('HomeCtrl', function($scope, $state, $ionicHistory) {
$scope.takePhoto = function(){
navigator.customCamera.getPicture(filename, function success(fileUri) {
alert("File location: " + fileUri);
}, function failure(error) {
alert(error);
}, {
quality: 80,
targetWidth: 120,
targetHeight: 120
});
};
I have not added any dependencies to my module as I would not know what to add I have used ionic, however have never had experience adding a plugin into my project.
This is the plugin I want to add: https://github.com/performanceactive/phonegap-custom-camera-plugin/blob/master/README.md