This is a wrapper over Flutter for iOS.
Aadhaar Paperless Offline eKYC is a secure and shareable document which can be used by any Aadhaar holder for offline verification of identification. The Aadhaar Offline document can be obtained from the UIDAI website. This SDK provides a simple plugin to your mobile App which allows the user to seamlessly share their offline Aadhaar file with the service provider.
The Aadhaar Offline file will be validated for its digital signature and the KYC data of The Aadhaar holder will be passed to the integrating App as JSON data.
You will need valid credentials to use the Deepvue Aadhaar Offline e-KYC iOS SDK, which can be obtained by contacting hello@deepvue.tech
-
Download our iOS dependencies from here.
- Open Pod File and add
pod 'Flutter', :podspec => '[path to downloaded ios dependencies]/Debug/Flutter.podspec'
- Go into your target’s
Build Settings > Build Phases > Link Binary With Libraries
and Drag all the content of[path to downloaded iOS dependencies]/Debug/
. - In the target’s
Build Settings
, add$(PROJECT_DIR)/Flutter/Debug/
to the Framework Search PathsFRAMEWORK_SEARCH_PATHS
. - Click on the "+" icon and select
New Copy Files Phase
. Rename the item created toEmbed Frameworks
and set theDestination
field toFrameworks
. Drag the frameworks (except forFlutterPluginRegistrant
) from your application’s Frameworks group into your target’sBuild Settings > Build Phases > Embed Frameworks
. Then, select Embed & Sign from the drop-down list.
- Open Pod File and add
pod 'Flutter', :podspec => '[path to downloaded ios dependencies]/Release/Flutter.podspec'
- Go into your target’s
Build Settings > Build Phases > Link Binary With Libraries
and Drag all the content of[path to downloaded iOS dependencies]/Release/
. - In the target’s
Build Settings
, add$(PROJECT_DIR)/Flutter/Release/
to the Framework Search PathsFRAMEWORK_SEARCH_PATHS
. - Click on the "+" icon and select
New Copy Files Phase
. Rename the item created toEmbed Frameworks
and set theDestination
field toFrameworks
. Drag the frameworks (except forFlutterPluginRegistrant
) from your application’s Frameworks group into your target’sBuild Settings > Build Phases > Embed Frameworks
. Then, select Embed & Sign from the drop-down list.
- Open Pod File and add
-
Copy OkycSdkHandler.swift file and add to your
project
alongsideAppDelegate
file.
You can use below code to trigger SDK from your application on a button press or a similar event.
//Implement our protocol to get responses
class ViewController: UIViewController ,Callback{
func onFailure(code: Int) {
// On Failure Code
}
func onSuccess(response: String) {
// On Success Response
}
}
// Use below code to open the sdk
OkycSdkHandler(
baseUrl: "base-url",
clientId: "client-id",
clientSecret: "client-secret",
useFaceMatch: true,
callback:self,
imageUrl: "image-url").startSdk(viewController: self)
Following error codes will be returned on the onFailure
method of the callback
CODE | DESCRIPTION |
---|---|
801 | SDK Invalid Credentials |
802 | Permission Denied |
803 | User Interrupted |
804 | No Internet Available |
805 | Network Error |
806 | OTP Limit Exceeded |
807 | Mobile Number Not Linked to Aadhaar |
808 | File Download Failed |
809 | File Upload Failed |
810 | Face Match Failed |
404 | UIDAI Website Server Down |
For any queries/feedback, contact us at hello@deepvue.tech