The Vimos iOS SDK is a realtime Video KYC solution for iOS in Swift
You can find the release history at Changelog
You will need a valid license and Netrc credentials to use the Vimos SDK, which can be obtained by contacting support@frslabs.com.
Once you have the license , follow the below instructions for a successful integration of Vimos SDK onto your iOS Application.
- Swift 5.0
- iOS 13.0+
You can use CocoaPods to install vimos
by adding it to your Podfile
:
source 'https://gitlab.com/frslabs-public/ios/vimos-ios'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'
target '<Your Target Name>' do
use_frameworks!
pod 'Vimos', ‘1.0.0’
end
You will need a valid netrc credentials to install vimos from maven, which can be obtained by contacting support@frslabs.com
.
- Create or edit .netrc file under current user's home directory
- Write the below lines into that file, replace <YOUR_USERNAME> and <YOUR_PASSWORD> with your credentials which is shared through email and save the file.
machine vimos-ios.repo.frslabs.space
login <YOUR_USERNAME>
password <YOUR_PASSOWRD>
-
In terminal enter below command to install the pod
pod install or pod update.
-
Connect with physical device to build and run vimos, It will not build/run in simulator due to camera dependency.
To get the full benefits import vimos
wherever you import UIKit
import UIKit
import Vimos
- Invoke Vimos SDK
// ...
override func viewDidAppear(_ animated: Bool) {
let kyc = KycController(delegate: self)
kyc.modalPresentationStyle = .fullScreen
kyc.url = "ENTER URL"
kyc.licenceKey = "ENTER LICENSE KEY"
present(kyc, animated: false)
}
// ...
- Handling the result and import delegate VimosResponseDelegate
class YourViewController: UIViewController,VimosResponseDelegate {
func vimosController(_ callerContoller: KycController, didFinishWithResults results: VimosResults) {
print("VIMOS : SUCCESS")
}
func vimosController(_ callerContoller: KycController, didFailWithError error: Int) {
print("VIMOS : FAILURE")
}
}
Following error codes will be returned on the didFailWithError
method of the callback
CODE | DESCRIPTION |
---|---|
1001 | Vimos SDK License has expired |
1002 | Vimos SDK License is invalid |
1050 | Invalid Vimos URL provided |
Sets the Vimos SDK apiCredentials . Obtain the appropriate api credentials through a REST API call , for details about the REST API, contact support@frslabs.com
For any queries/feedback , contact us at support@frslabs.com