[Android]
Check if camera is available in native code rather than in Manifest
- Device without camera can now use the module (If camera is not available the button
takePhoto
will not appear) Since media permission in manifest aren't always granted with Android 6+ the check will work in any case now. #168
if you want to allow device without camera to use the module please change the folowing line in your manifest
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>