Launch the user view

AI Tools

In the previous section we saw how to create a session request, which returns:

  • Session ID

We then use these to construct a URL which loads the Yoti Client. The URL can be used in the following ways:

  • As a link on your webpage
  • As a link shared securely with a user
  • Within an iFrame on your webpage

Hint This is only for sessions where the UI needs to be launched

HTTP
Copy
URL ParameterDescription
sessionIdThe session ID from the Yoti session create response.
sdkIdThis is your SDK ID provided to you by Yoti.

Once the Yoti Client has launched, it will take the user through the age verification flow. The user will be redirected to the specified callback URL on completion of one of the age verification methods.

user view

user view

Iframe Implementation

The example below demonstrates the use of an iframe:

Markdown
Copy

Please note: allow="camera" is required when the age estimation or document scan methods are used.

Good to know
While it is possible to use this solution in an iFrame, using a new browser window will guarantee an optimal user experience.

iOS WebView Implementation

The example below demonstrates the use of a webview in mobile development:

React Native
iOS (Native)
Copy

Please note configuration for Inline Media Playback is required to allow the phone camera being opened inside the webview instead of in a fullscreen mode.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard