Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49172

Ionic ios access to it's plugins

$
0
0

@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 :

enter image description here

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

Read full topic


Viewing all articles
Browse latest Browse all 49172

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>