https://github.com/passbase/passbase-sp.git
as the repository URL.2.13.0
pod init
use_frameworks!
, like in the example below.pod install
to install the Passbase SDK in your project. This will create a new .xcworkspace
file inside your project's folder. Please use this file for future development, since all dependencies are installed here.pod update
inside your directory to pull the latest podspec version and get the latest version of the SDK.YourProject.xcworkspace
.AppDelegate.swift
file and add import Passbase
to the top. Then add the initialize method with your publishable API key from your API settings. Your code should look now like below:Info.plist
, so that the Passbase iOS SDK can access a user's camera to run a verification. You can do this in the property list view or by code.Add Row
. Now add the entries like below.Info.plist
and select Open As -> Source Code. Add the lines below somewhere inside the <dict> </dict>
PassbaseButton
. Ensure that the module also says Passbase
below the class.PassbaseButton
. You can give it parameters, like width
, height
, x
& y
through the CGRect and add constraint to position the button.prefillUserEmail
parameter to the button like below. prefillCountry
parameter to the button like below. An ISO-3166 compliant country code, case insensitive. This will not enable skipping the country selection step. VERIFICATION_REVIEWED
webhook event, it is time to call the Passbase Get Identity endpoint. Using this API endpoint, you will see the new metaData object returned.onStart
onSubmitted
onFinish
onError
CANCELLED_BY_USER
BIOMETRIC_AUTHENTICATION_FAILED
identityAccessKey
of a successfully completed identity verification from the callback method and save it to your DB to the user's profile