Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic native camera plugin - error 20

$
0
0

@thebron wrote:

I have an ionic 3 app that is using the ionic native camera plugin. This plugin was working fine, however, it recently stopped working and now just returns “20” as an error where I call getPicture with camera options like

    const camOptions: CameraOptions = {
      quality: 100,
      destinationType: this.camera.DestinationType.NATIVE_URI,
      encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE,
      correctOrientation: true
    }

this.camera.getPicture(camOptions).then(imageData => {
console.log(imageData)
}, err => {
      console.log(err)
    })

I can create a simple tabs app and use this plugin and everything works fine. Is it maybe a plugin conflict in my project? Does anyone have any ideas? What information can I provide to help?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>