Skip to main content

URL integration

Initial steps​

With URL integration, onboarding runs on the Mobbeel Gateway domain, outside yours. Add a link to the onboardingUrl that your backend received when it created the process.

<a href="{{ onboardingUrl }}">Start onboarding</a>

The page opens in the current tab (or in a new tab using target="_blank").

When the process ends, the Gateway redirects the user to the redirectUrl of the process, if one was set.

Take the decision in your backend

Retrieve the process result and check the status and validations.

Error handling​

If an error occurs, the Gateway shows a dialog with a short description (it can be disabled). When the user accepts it, the Gateway redirects to the redirectUrl. The error parameter identifies the error; some errors also include cause for more detail.

connectionErrorThe user's device does not have a stable network connection or is not available.2 causes
  • fetchTimeoutErrorSome of the calls made to the server have exceeded the maximum time allowed.
  • lowNetworkQualityErrorThe network quality is not enough to perform the process.
hardwareErrorThe user's device does not have a camera and/or microphone (if necessary), or is not available for use due to a hardware problem.3 causes
  • cameraDeviceErrorThe user's camera is not accessible by the browser (generic hardware error).
  • cameraNotAvailableErrorThe user's device does not have a camera.
  • cameraNotReadableErrorThe user's camera is in use by another process and cannot be accessed.
onboardingErrorThe onboarding process was canceled because of a problem.3 causes
  • classificationErrorThe document could not be classified or is not allowed for onboarding.
  • fetchErrorA communication error occurred with the server.
  • validationErrorThe user did not pass an enabled document or face validation.
permissionErrorThe user has not granted access to the camera and/or microphone, if required.2 causes
  • cameraNotAllowedErrorThe user has not granted camera access.
  • microphoneNotAllowedErrorThe user has not granted microphone access, if required.
supportErrorAn unexpected error prevented onboarding from completing. Contact support.
timeoutErrorThe user exceeded the maximum time allowed for onboarding.
tokenErrorThe onboarding identifier has expired and is no longer valid.1 cause
  • scanIdErrorThe user is trying to reuse an identifier.

Example​

redirectUrl set by your backend:

https://your-app.example.com/?userId=12345

redirectUrl with error and cause:

https://your-app.example.com/?userId=12345&error=onboardingError&cause=validationError

The original parameters are always kept.