NativeScript / nativescript-camera

NativeScript plugin to empower using device camera.
Apache License 2.0
92 stars 47 forks source link

Not passing the options object to the camera crashes it in iOS #244

Open nmandyam opened 4 years ago

nmandyam commented 4 years ago

Make sure to check the demo app(s) for sample usage

Done.

Make sure to check the existing issues in this repository

Checked.

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter. In 4.5.0 (NS 6.x) , invoking the camera without an options object brings up the camera, but crashes the app when the photo is selected.

Which platform(s) does your issue occur on?

iOS, actual device

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Take a picture, click on Use Photo.

Is there any code involved?

camera.takePicture().then(function (imageAsset) { var picture_taken = imageAsset; ...