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

Permission Denial... requires android.permission.READ_EXTERNAL_STORAGE or grantUriPermission()

$
0
0

@Zvika88 wrote:

My Ionic app (in development) used to work fine with Android 5. When testing it with a new Google Nexus 6P (Android 6.0.1) I get the error message in the title. My camera code is simple (see below). What am I missing to make it work again?

angular.module('my.services').service('phoneUtilitiesService', ....

                this.takePicture = function( type, successFn, errFn ) {
                navigator.camera.getPicture( successFn, errFn, {
                    quality: 75,
                    allowEdit: false,
                    encodingType: navigator.camera.EncodingType.JPEG,
                    targetWidth: 512,
                    targetHeight: 512,
                    cameraDirection: type=='self'? 1:0 , // selfie==1, normal==0
                    saveToPhotoAlbum: false,
                    correctOrientation: true
                });
            };

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



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