💡 For older IDCheckIOSDK sample (v5.x.x), please checkout the sdk_v5 branch
To get this sample running, please follow the instructions :
-
Ask our Customer Success Managers for credentials to access the IDnow external repository in order to retrieve the IDCheck.io Mobile SDK library and integrate it to the project.
-
To be able to fetch IDCheckIOSDK, you need to have a .netrc file with your credentials given by our team to let Cocoapods authenticate through our Nexus repository. Just create a .netrc file in the root directory of your user and add the following lines :
machine repoman.rennes.ariadnext.com
login YOUR_LOGIN
password YOUR_PASSWORD
- Open your terminal and execute the following commands in order to install dependencies:
$ cd idcheckio-sdk-sample-ios
$ pod install --repo-update
- Add your SDK's token
With your application bundle identifier, ask the Customer Success Managers to create an
idToken
to activate the SDK. You can then integrate it in your project using the Token.swift file or your own file or variable:
import Foundation
public enum Token: String {
case demo = "YOUR_ID_TOKEN"
}
- Run the project
You are now good to go !
This sample project aims to showcase all possibilities of the IDCheck.io Mobile SDK and the associated best practices regarding these features. It also helps you understand how you can easily integrate the SDK, activate it and customise/adapt it to your application and business needs. The main screen displays two buttons to choose between distinct capture flows :
- Online flow : This flow uses the SDK for starting one session to capture only one document. You can configure wich type of document you want to capture with recommended configurations indicated in the SDKConfig.swift file.
- Onboarding flow (Recommended) : This is a flow that allows you to chain several sessions (for example identity document + bioliveness). To configure the session you must contact Customer Success Managers. Select the flow you want to try to start capturing documents with the SDK.