Skip to main content

Logging

The SDK provides a way to log user and SDK common actions (lifecycle events, navigation, camera changes). This can be useful for understanding specific scenarios or troubleshooting potential issues. To enable logging, provide your implementation of the IdenfyLoggingHandlerUseCase class:
You only need to provide a concrete implementation of the IdenfyLoggingHandlerUseCase interface. If you also want to see OkHttp requests/responses and payload in Logcat, initialize the iDenfy SDK with IdenfySDKLoggingEnum.FULL:

User Events Webhooks (Optional)

The SDK provides webhooks about events occurring throughout the verification process. Results are delivered while the verification process is active and the application is presenting SDK views.

Declare a Class for Receiving Events

Declare a class that implements IdenfyUserFlowHandler to call your backend service, log events, or apply changes:

Configure Application Class

Set IdenfyUserFlowController to reference idenfyUserFlowCallbacksHandler in the application class:
You must set the webhooks handler in the application class to ensure that the listener is set again after the application process has stopped.