Skip to Content
0
Former Member
Oct 23, 2015 at 11:12 AM

cordova camera plugin in Launchpad

102 Views

Hello Team,

We have developed a custom application with call to cordova camera plugin as below:

capturePhoto: function(){

var oNav = navigator.camera;

oNav.getPicture(this.onPhotoSuccess, this.onFail,

{

quality: 10,

destinationType: oNav.DestinationType.DATA_URL,

saveToPhotoAlbum; true

}

},

onPhotoSuccess: function(imageData){

var oImage = this.getView().byId("myImage");

oImage.setSrc("data:image/jpeg;base64", imageData);

}

With this, I am able to call the camera from application in desktop preview.

But, when I am trying with deploying to Launchpad, I am not able to call the camera API.

Please suggest.

Regards,

Ajay