Skip to content

frslabs/vimos-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Vimos iOS SDK

The Vimos iOS SDK is a realtime Video KYC solution for iOS in Swift

version

You can find the release history at Changelog

Table Of Content

Prerequisite

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.

Requirements

  • Swift 5.0
  • iOS 13.0+

Installation

Cocoapods

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
Save/Edit Netrc settings to install custom pod

You will need a valid netrc credentials to install vimos from maven, which can be obtained by contacting support@frslabs.com.

  1. Create or edit .netrc file under current user's home directory
  2. 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>
  1. In terminal enter below command to install the pod

    pod install or pod update.

  2. 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

Getting Started

Swift

  1. 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)
      }
    // ...    
  1. 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")
    }
  
}

Vimos Error Codes

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

Help

For any queries/feedback , contact us at support@frslabs.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published