Handle any notification messages sent by the ID Verification service. For example:
idvService.processNotification(notificationData,
(verificationResult) -> {
//Handle ValidationResult here
VerifyStatus status = verificationResult.getStatus().getStatus();
//For a successful validation,
Collection<Claim> claims = verificationResult.getClaims();
//For a failed validation,
Collection<ProviderMessages> errors =
verificationResult.getStatus().getProviderMessagesList();
},
if (!idvService.getValue().processNotification(NOTIFICATION_DATA)) {
// Notification cannot be handled by the SDK
// Handle your app notifications here
}
(error) -> {
//Handle error here
});
See processNotification
in IdvService for more information.