FaceLiveness
Privacy Policy and Terms & Conditions of Use
When using our plugin, please make sure that you agree with our Privacy Policy and our Terms and Conditions of Use.
Configurações
Android
In the file ROOT_PROJECT/android/app/build.gradle
, add:
Import the package and call the method add() inside of the initialization in android/app/src/main/java/io/ionic/starter/MainActivity.java
:
iOS
In the ROOT_PROJECT/ios/Podfile
, add to the end of the file:
Finally, add the camera permission to the file ROOT_PROJECT/ios/Runner/Info.plist
:
Ionic
In the file ROOT_PROJECT/package.json
add:
Than, run:
npm install
ionic capacitor build < platform > [ options ]
Importando
Utilizando
Coletando o resultado
O objeto de retorno do DocumentDetector terá o atributo result
que contém uma string SUCCESS
, FAILURE
ou CLOSED
. O retorno terá o padrão PassiveFaceLivenessSuccess, PassiveFaceLivenessFailure e PassiveFaceLivenessClosed, respectivamente, para cada um dos casos.
PassiveFaceLivenessSuccess
Return |
---|
|
### Signed response params |
Event | Description |
| Request identifier. |
| Validation of a living person, identifies whether the user passed successfully or not. |
| Request token. |
| User identifier provided for the request. |
| Temporary link to the image, generated by our API. |
| User identifier provided for the SDK. |
| Sdk version in use. |
| Token expiration. |
The isAlive parameter is VERY IMPORTANT, based on it validation must be carried out to continue with the flow or not, in case of isAlive: true
, your user is able to continue with the journey, in case of isAlive: false
, this user is not is valid and should be barred from the remainder of the journey.
PassiveFaceLivenessFailure
Return |
---|
|
PassiveFaceLivenessClosed
Objeto vazio indicando fechamento da tela de captura pelo usuário.
Last updated