Mobbeel for developers

Mobbeel for developers

  • MobbScan
  • MobbID
  • MobbSign
  • Clients
  • FAQ

›Getting Started

MobbScan iOS

  • Welcome to the MobbScan SDK
  • SDK size

Configure SDK

  • Configure the iOS SDK

Migration Guides

  • Migration to 2.26.0
  • Migration to 2.19.0
  • Migration to 2.18.0
  • Migration to 2.17.0
  • Migration to 2.16.0

Getting Started

  • Initalize API
  • Scanning a document with MobbScan
  • Performing Face Matching
  • Adding a video step
  • Record a video while user scans the document
  • Getting the verification result
  • Scanning documents with NFC
  • Detect and scan MRZ
  • Detect and scan a PDF417
  • Add fields to validations in agent portal
  • Error Handling

Additional Configuration

  • MobbScan Configuration

Customization

  • Customize Detection Views
  • Customize Feedback Messages
  • Customize Unattended Process

Reference

  • Changelog

Initalize API

Overview

The first step is always initializing the API. You need to do this before any other action otherwise the SDK will not work. You need your license key to complete this step:

Swift
ObjectiveC
// define a property to keep the reference to MobbScanAPI
var mobbscanAPI = MobbScanAPI.getInstance()

...

self.mobbscanAPI.initAPI(withLicense: "YOUR_LICENSE_HERE") { (result, date) in
NSLog("License check result: %@", NSStringFromMobbScanLicenseResult(result))
}
self.mobbScanApi.baseURL = "YOUR_MOBBSCAN_SERVER_HERE"

// define a property to keep the reference to MobbScanAPI
@property (nonatomic, strong) MobbScanAPI *mobbScanAPI;

...

self.mobbScanAPI = [MobbScanAPI getInstance];
[self.mobbScanAPI initAPIWithLicense:@"YOUR_LICENSE_HERE" result:^(MobbScanLicenseResult result, NSDate* date) {
NSLog(@"License check result: %@", NSStringFromMobbScanLicenseResult(result));
}];

[self.mobbScanAPI setBaseURL:@"YOUR_MOBBSCAN_SERVER_HERE"];

Setting up the SDK Parameters

You can configure the URL of the MobbScan backend. This operation must be performed after the SDK initialization or you will be using the default value: https://demo.mobbeel.com. In order to choose another URL:

Swift
ObjectiveC
mobbscanAPI.baseURL = "YOUR_MOBBSCAN_SERVER_HERE"
[self.mobbScanAPI setBaseURL:@"YOUR_MOBBSCAN_SERVER_HERE"];

Start Process

Once the API is initialized and the SDK is configured as you need, you have to start a new scan process.

Swift
ObjectiveC
self.mobbScanAPI.startScan(for: ._ESPIDCard, for: .SCAN_BOTH_SIDES, withResult: { result, scanId, error in
// Your block code here
})
[self.mobbScanAPI startScanForDocumentType:MobbScanDocumentType_ESIDCard forMode:MobbScanOperationMode_SCAN_BOTH_SIDES withResult:^(MobbScanStartScanResult result, NSString *scanId, NSError *error) {
// Your block code here
}];

The first parameter of the method startScan is the document type to be scanned. The second one indicates if you want to do a full scan with both sides of the document or just one of them.

Tip: The listener will return you a scanId string. Be sure of saving it, as you will need it for next API calls and for retrieving evidences after the scan process.

Warning: When you are going to scan a document with just one side (such as Passport_TD3), you must use the scan operation SCAN_ONLY_BACK.

← Migration to 2.16.0Scanning a document with MobbScan →
  • Overview
  • Setting up the SDK Parameters
  • Start Process
Mobbeel for developers
Product Documentation
MobbIDMobbScanMobbSign
Connect
LinkedInFacebookX
More
FAQContact Us
Mobbeel Solutions SL
Copyright © 2025 Mobbeel Solutions SL