Skip to content

Permissions

The Face SDK requires a few device permission. For instance, the Liveness and Face Capture modules need to use the device's camera.

To work properly, the iOS platform requires the following permissions to be specified explicitly.

For Android, it's required to allow the INTERNET permission. Note that your application will inherit the permissions the Face SDK provides.

Add the following usage descriptions to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>Requires access to your phone’s camera.</string>

INTERNET is a mandatory permission:

<uses-permission android:name="android.permission.INTERNET" />

Optionally, you can the following permissions, as they will be merged by the build system to your AndroidManifest.xml automatically:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />

Add the following usage descriptions to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>Requires access to your phone’s camera.</string>

Add the following configuration to your config.xml at the root <widget></widget> node:

<config-file platform="ios" target="*-Info.plist" parent="NSCameraUsageDescription">
    <string>Requires access to your phone’s camera.</string>
</config-file>

Add the following configuration to your config.xml at the root <widget></widget> node:

<config-file platform="ios" target="*-Info.plist" parent="NSCameraUsageDescription">
    <string>Requires access to your phone’s camera.</string>
</config-file>

Add the following usage descriptions to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>Requires access to your phone’s camera.</string>