NativeScript / nativescript-camera

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

No v4 support #226

Closed edrick27 closed 4 years ago

edrick27 commented 4 years ago

I am using nativescript v6, and "nativescript-camera": "^4.1.1". when i try to use camera console show No v4 support. the code is:

requestPermissions().then( () => { takePicture({ width: 300, height: 300, keepAspectRatio: true, saveToGallery: this.saveToGallery }) .then((imageAsset: any) => { this.SavePictures(imageAsset); }, (error) => { }); }, () => alert('permissions rejected')

xsterlas commented 4 years ago

@aaayushsingh - "add the latest nativescript-permissions lib to your project and import it anywhere. This will fix the issue" This solution from other issue works perfectly: https://github.com/NativeScript/nativescript-geolocation/issues/246

support[bot] commented 4 years ago

:wave: @edrick27, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please, use Stackoverflow to get help.