Step 1: Integrate SDK into the App
- In this step user will add the IPass SDK inside the project's write: pod 'IpassFrameWork1', :git => 'https://github.com/yazanalqasem/IpassFramework.git'
- Run pod installs in the terminal to install the SDK into the project.
Step 2: Configure Permissions in Info.plist
In this step user will give required permissions in the Info.plist file to
enable the necessary device features:
- Privacy - Camera Usage Description — Description for camera access.
- Privacy - Photo Library Usage Description - Description for photo library access.
- Privacy - Bluetooth Always Usage Description - Description for Bluetooth access.
- Privacy - Speech Recognition Usage Description - Description for speech recognition.
- ISO7816 application identifiers for NFC Tag Reader Session - For NFC features.
- A0000002471001
- E80704007F00070302
- A000000167455349474E
- A0000002480100
- A0000002480200
- A0000002480300
- A00000045645444C2D3031
- com.apple.developer.nfc.readersession.formats. - NFC reading formats.B
- NDEF
- TAG
Step 3: Add NFC compatibility permission
Step 4: Initialize Database
- In this step the database will initiate from 1 to 100% progress
indication.
- Once the database is downloaded 100% user can start the scanning process
Code to download the database
Step 5: Get user Login token
- Pass valid email id and password to get user token
Code for user login
- This token is requried for document scanning
Step 6: Document Scanning
- User can scan various types of documents.
- Users can scan both the front and back sides of documents, but it totally depends on the document type.
Code to scan document
- usertoken will be the login token
- appToken will be the auth token provided by Admin
- After the scanning process user will get the response in the form of json in result object