Skip to content
GBG Documents & Biometrics Documentation

FAQ

The document camera (when used via composition) restarts when the phone is rotated

Section titled “The document camera (when used via composition) restarts when the phone is rotated”

This is happening due to the hosting activity restarting on rotation. Our compose is set up to correctly handle an orientation change via config change. This means that if the remainder of your activity correctly handles orientation change without restarting you can safely enable android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden" for your activity, which will prevent it from restarting on orientation change.

This is expected if not launching via MRZ reading mode (see Reading Document MRZ). MRZ reading slows down processing by a noticeable amount and is therefore only ran when explicitly requested.

When launched in MRZ reading mode, the document camera ignores sharpness and glare issues

Section titled “When launched in MRZ reading mode, the document camera ignores sharpness and glare issues”

This is intentional. In our testing we found that requiring both a good quality document and a valid MRZ read led to slow capture and a frustrating UX. The primary purpose of launching the camera in MRZ mode is to extract the data required to unlock NFC reading.

How do I enable Document Injection Attack Detection in the SDK

Section titled “How do I enable Document Injection Attack Detection in the SDK”

For customers that are using Document Injection Attack Detection, there is no action needed within the SDK’s to enable this feature, you just need to ensure you are on a compatible version of the SDK. Document IAD must also be enabled on your GBG account to use it with the backend, please speak with your account manager for further information.

Once you have received the captured document image from the SDK, you need to send the image to GBG exactly as you received it, in the same way you send document images today. Do not re-encode, resize, rotate, compress, crop, or strip metadata from the image.