bitpay/cordova-plugin-qrscanner

Android: no way of confirming `status.restricted`

bitjson opened this issue · 1 comments

On iOS, the restricted field is set when parental controls or organization security profiles disable camera usage. In these cases, users are actually unable to allow the camera permission. The status.restricted field is set to true to allow app developers to better tailor the experience to these users (by not trying to openSettings() and instead asking them to contact a company admin, for example).

Android documentation is currently silent on how to detect if a Device Management Policy has disabled use of the camera: https://support.google.com/edu/android/answer/3429624 (Device settings > Allow camera)

If someone finds a need for this feature to work on Android (and can test it), please comment here. I'm leaving this closed for now.