Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: no way of confirming status.restricted #15

Closed
bitjson opened this issue Aug 4, 2016 · 1 comment
Closed

Android: no way of confirming status.restricted #15

bitjson opened this issue Aug 4, 2016 · 1 comment

Comments

@bitjson
Copy link
Contributor

bitjson commented Aug 4, 2016

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)

@bitjson
Copy link
Contributor Author

bitjson commented Aug 4, 2016

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.

@bitjson bitjson closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant