Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

cordova camera plugin in Launchpad

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question