@vahidvdn wrote:
Hi there. I have made an app for
ios
and installed in my iphone. It has Camera plugin in it. It works perfect in android.Also in iphone, as I run ionic
view
app (downloaded from appstore) it works perfect into that (first my phone asks about allowing access to camera), But not working in my own app.In ionic view app :
But in my own app, Nothing! Doesn't work. Even
auto rotation
just works in ionic view app.Any idea?
EDIT: My impelmentation code:
$scope.takePhoto = function() { var options = { destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, }; $cordovaCamera.getPicture(options).then(function(imageURI) { }, function(err) { // error $scope.camErr = err; }); } $scope.getPhoto = function() { var options = { destinationType: Camera.DestinationType.PHOTOLIBRARY, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, }; $cordovaCamera.getPicture(options).then(function(imageURI) { }, function(err) { // error $scope.camErr = err; }); }
Posts: 5
Participants: 2