MobbScan Web: Installation
Requirements
License Key
A license key linked to your application is needed to use MobbScan Web. Please, contact us to obtain one.
Supported browsers
| Safari | Chrome | Firefox | Opera | |
|---|---|---|---|---|
| Minimum required version | 11 | 41 | 50 | 40 |
| Real-time detection | Yes | Yes | Yes | Yes |
| File upload detection | Yes | Yes | Yes | Yes |
| Videoconference | Yes* | Yes | Yes | Yes |
| Unattended Video | Yes | Yes | Yes | Yes |
*Communication not allowed between two Safari browsers
| Edge | IE | Chrome | Firefox | Opera | |
|---|---|---|---|---|---|
| Minimum required version | 40 | 11 | 50 | 49 | 40 |
| Real-time detection | Yes | No | Yes | Yes | Yes |
| File upload detection | Yes | Yes | Yes | Yes | Yes |
| Videoconference | No | No | Yes | Yes | Yes |
| Unattended Video | No | No | Yes | Yes | Yes |
| Edge | Chrome | Firefox | Opera | |
|---|---|---|---|---|
| Minimum required version | 40 | 50 | 49 | 40 |
| Real-time detection | Yes | Yes | Yes | Yes |
| File upload detection | Yes | Yes | Yes | Yes |
| Videoconference | Yes | Yes | Yes | Yes |
| Unattended Video | Yes | Yes | Yes | Yes |
| Safari | Chrome | Firefox | Opera | |
|---|---|---|---|---|
| Minimum required version | 11 | 50 | 12 | 16 |
| Real-time detection | Yes | No | Yes* | Yes* |
| File upload detection | Yes | Yes* | Yes* | Yes* |
| Videoconference | No | No | No | No |
| Unattended Video | Yes | No | Yes* | No |
*Feature allowed from iOS 14
jQuery
MobbScan Web needs at least a 3.2.1 version of jQuery. In the distributable file, a jQuery file is included for its use if your project does not already have it.
Installation & Configuration
Unzip the distribution bundle.
Copy the
mobbscan-apifolder in a public route in your server/local environment.Add the following files in the
<head>element of your website, replacing{version}with your current MobbScan version, and specifying the correct path to yourmobbscan-apifolder:<link type="text/css" rel="stylesheet" href="./mobbscan-api/css/mobbscan.css" /> <script type="text/javascript" src="./mobbscan-api/mobbscan-api-{version}.min.js" ></script>NOTE: The CSS file can be imported in your own stylesheets.
If jQuery is not being used, add the included jQuery javascript before the previous includes:
<script type="text/javascript" src="./mobbscan-api/js/jquery-3.2.1.min.js" ></script>Put an empty
divin thebodywith anid. For example:<div id="mobbscan-placeholder"></div>Now the SDK can be initialized when the document is ready. For example, using jQuery:
$(document).ready(() => { // Here goes MobbScan initialization code, check next step });Initialize the SDK:
// Sets the license MobbScanAPI.initAPI('YOUR_LICENSE_HERE'); // Sets the URL of the MobbScan server MobbScanAPI.setBaseURL('https://yourmobbscaninstance.yourcompany.com'); // Indicate the placeholder where the UI will be rendered // (in this example, it points to an element with id "mobbscan-placeholder") MobbScanAPI.setPlaceholder('mobbscan-placeholder'); // This listener is called when a frame has been analyzed or a detection starts MobbScanAPI.setDetectionListener(console.log); // This renders the user interface in the element with id == "mobbscan-placeholder" MobbScanAPI.start( MobbScanDocumentType.ESPIDCard, MobbScanOperationMode.SCAN_BOTH_SIDES, console.log );NOTE
There are several listeners like
setDetectionListenerwhich can be configured. They will be covered in the Usage section. Also, in that section you can get further details about theMobbScanAPI.start()call.NOTE
If you want to allow file uploading to try to detect the document you should call this method to enable it:
MobbScanAPI.setFileBrowserEnabled(true);
