title: Accessing Camera in Ionic 3 App running on a browser
body: <p>I have ionic 3 app having following code to access Camera .</p>
  
  <pre><code>takePhoto() {
      const options: CameraOptions = {
      quality: 50,
      destinationType: this.camera.DestinationType.DATA_URL,
      encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE,
      targetWidth: 450,
      targetHeight: 450,
      saveToPhotoAlbum: false
   };
  
     this.camera.getPicture(options).then(
      imageData =&gt; {
        this.base64Image = "data:image/jpeg;base64," + imageData;
        this.photos.push(this.base64Image);
        this.photos.reverse();
        this.sendData(imageData);
       },
       err =&gt; {
         console.log(err);
       }
       );
  }
  </code></pre>
  
  <p>It works perfectly fine and takes picture if my platform is android/ios.  But when I try to run my app on platform 'browser' and access through mobile I get following error(Both on Safari or Chrome). </p>
  
  <p><a href="https://i.stack.imgur.com/7eDy5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7eDy5.png" alt="enter image description here"></a></p>
  
  <p>What is the way to access Camera/gallery in mobile if my platform is browser?</p>