Skip to Content
avatar image
Former Member

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 =;

     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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 23, 2015 at 02:48 PM

    How are you previewing the app and are you running this in the fiori client?  Web IDE has the cordova facade configured within it which allows you to test cordova features in a desktop browser.  This wouldn't be available outside of Web IDE without modification.  You also have some typos in your code, semicolon next to saveToPhotoAlbum and you are missing a bracket which may be your issue.



    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded