iOS Ionic Capacitor Wrapper
-
Setup the Ionic development environment based on the development and target OS by following the steps here,
Setting up the development environment Github Repository -
We will be integrating iOS Identity SDK version 9.3.10.2.26. Download and unzip the resources archive, it consists of the ionic_angular, ios_code, ios_framework directories and a Podfile, IonicSDK2iOSResources
-
Create an empty Ionic Angular application
ionic start ionic-angular-capacitor-identity-sdk blank --type=angular
-
Add ionic angular code. Copy and paste the contents of the ionic-angular folder to the home folder. Overwrite files if required.
-
Add iOS project. Build and sync code.
ionic cap add ios
ionic build
ionic cap sync
- Uninstall pods. Navigate to the iOS directory. Execute the command mentioned below and delete Podfile.lock and *.xcworkspace files afterwards.
pod deintegrate
-
Setup pods. Replace the Podfile with the Podfile from the resources archive. Install pods.
pod install
- Open the xcworkspace file.
- Add iOS code. Copy contents of the ios_code folder in your project. Overwrite files if required.
-
Add iOS dependencies. Drag and drop the IDCapture_Swift.xcframework, IDentitySDK_Swift.xcframework, SelfieCapture_Swift.xcframework present in the ios_framework directory into the Frameworks directory in XCode. In the popup, “Copy items if needed”, “Create groups” and main target should be selected. Select the Target, then select General, Framework, Libraries and Embedded Content, and select the Embed & Sign option for IDCapture_Swift.xcframework, IDentitySDK_Swift.xcframework, SelfieCapture_Swift.xcframework.
- Build and run the iOS application.
-
Sync Now and Build in Android Studio
-
Run the android app
- Ionic sample app TestFlight link
- Here is a brief description of the sample app functionality,
- ID Validation - Initiates ID Validation(Service ID 20) flow.
- ID Validation and Match Face - Initiates ID Validation and Match Face(Service ID 10) flow.
- ID Validation and Customer Enroll - Initiates ID Validation and Customer Enroll(Service ID 50) flow.
- Customer Enroll Biometrics - Initiates Customer Enroll Biometrics(Service ID 175) flow.
- Customer Verification - Initiates Customer Verification(Service ID 105) flow.
- Identify Customer - Initiates Identify Customer(Service ID 185) flow.
- Live Face Check - Initiates Live Face Check(Service ID 660) flow.
- Submit - Submits the form.