check camera permission

Bug description:
html use camera , in android log error
java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE…

To Reproduce:
html code like

Expected behavior:
open camera , take a pic and return pic to html

Environment:

  • OS: android
  • OS version: 9
  • react-native version: 0.59.8
  • react-native-webview version:5.8.1

1 possible answer(s) on “check camera permission