You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/15 11:17:23 UTC

[GitHub] amitgandole opened a new issue #375: Not supporting on browser

amitgandole opened a new issue #375: Not supporting on browser 
URL: https://github.com/apache/cordova-plugin-camera/issues/375
 
 
   Hello,
   As mentioned in plugin documentation, Camera working fine in DevApp. But when I run same on mobile browser, Its saying cordova not available. Is it issue or am I doing anything wrong?
   
   My code is : 
   takePicture(){
   
       const options: CameraOptions = {
         quality: 100,
         destinationType: this.camera.DestinationType.FILE_URI,
         encodingType: this.camera.EncodingType.JPEG,
         mediaType: this.camera.MediaType.PICTURE
       }
     
       this.camera.getPicture(options).then((imageData) => {
         
       }).then((imageData) => {
       this.base64Image= "data:image/png;base64," + dataImage;
      
       }, (err) => {
           console.log(err);
       });
     }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org