Skip to content

Android: no way of confirming status.restricted #15

@bitjson

Description

@bitjson

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions