Error and Ended

This page details the following functions:

  • sessionError
  • sessionEnded
  • handleError

sessionError

Platforms - all supported platforms

Triggered by Personetics widget in case of widget error. Personetics provides a default message response to the error. Alternatively, the customer can decide on the message or dialog (if any) to display.

Return value - None

Web Params

NameTypeMandatoryDescription
errorInfoMapNoError information in key/value fashion including errorCode and errorMessage

Mobile Params

iOS Swift, Android, React Native

NameTypeMandatoryDescription
errorInfoMapNoError information in key/value fashion including errorCode and errorMessage

Flutter Params

NameTypeMandatoryDescription
contextBuildContextYesThe build context of the webView widget.
requestBodyParamsMap<String, dynamic>YesRequest body to be sent to Personetics server

sessionEnded

Platforms:all supported platforms

Optionally allows the bank to close the window. For example - may can relevant for Personetics’ widgets with a designed “Close” button controlled by Personetics UI. Session ended will be triggered once the end-user clicks the close button.

Return value - None

Web Params

Default behavior: The bank should close the controller\View*

NameTypeMandatoryDescription
sessionInfoMapNoSession information

Mobile Params

iOS Swift, Android, React Native

Default behavior: The bank should close the controller\View*

NameTypeMandatoryDescription
sessionInfoMapNoSession information

Flutter Params

Default behavior: The bank should close the widget.

NameTypeMandatoryDescription
contextBuildContextYesThe build context of the webView widget.
requestBodyParamsMap<String, dynamic>YesRequest body to be sent to Personetics server

handleError

Platforms:All supported platforms.

Will be triggered by bank application if there is an application error.

Parameters

NameTypeMandatoryDescription
errorInfoMapNoError information in key/value fashion including errorCode and errorMessage

Return value

None