@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