Permissions

This page covers the description of the required permissions

Xamarin.Android

If you want to read a document from the gallery, you need to make sure that your application has permission to read from external storage. You can check it using the following code:

// checking for image browsing permissions
if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.ReadExternalStorage) != Permission.Granted)
{
ActivityCompat.RequestPermissions(this, new string[] { Manifest.Permission.ReadExternalStorage }, PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
}
else
{
// start image browsing
CreateImageBrowsingRequest();
}

Xamarin.iOS

Camera

Please note that as of iOS 10, access to the camera must be declared ahead of time or the app will crash. As Document Reader SDK requests access to the user's camera, usage of the Camera framework must be declared.

This is achieved easily by adding the NSCameraUsageDescription key to the Info.plist along with usage description string. This usage string is displayed when the user is asked to allow access, so localization may be desired depending on your user base.

RFID

Add the NFCReaderUsageDescription key as a string item to the Info.plist file.

Also, com.apple.developer.nfc.readersession.iso7816.select-identifiers has to be added and a list of application identifiers has to be declared there which the app has to able to read according to ISO7816. The list of application identifiers which Document Reader SDK is able to process can be found here.