Adds Sumsub KYC functionality to your Unity project.
- UniTask (for asynchronous operations)
- EDM4U (External Dependency Manager)
- Drag the
project-root/SumsubUnityPlugininto Unity atAssets/Plugins/ Assets/External Dependency Manager/iOS Resolver/Settings-> UntickLink Frameworks statically
- Call
Sumsub.CreateInstance(string accessToken)and pass in the access token to setup the SDK.- Returns true if an instance is created successfully, otherwise false.
- This can be called repeatedly and will replace the old instance using the new access token. Use together with
Sumsub.OnAccessTokenExpiredto re-initialize the SDK with a new token.
- Use
Sumsub.OpenSdkto open the SDK interface.- This is an async method,
awaitwill return when the SDK closes.
- This is an async method,
- Use
Sumsub.GetStatusto get the current Sumsub status.
Callbacks:
Sumsub.OnAccessTokenExpired: Called when access token expires on the current instance. Use this callback to request a new access token (e.g. from your backend), then callSumsub.CreateInstance(string)and pass the new token in.
- If you need to change the version of Sumsub dependencies, you need to update both
./platforms/ios/Podfileand./SumsubUnityPlugin/Unity/Editor/SumsubDependencies.xml - Right-click
./platforms/ios->New Terminal at Folder, runpod install(optionally--repo-updateto update pods). - Open
./platforms/ios/SumsubPlugin_iOS.xcworkspaceand modify the project. - From top menu choose
Product/Archive, then chooseProduct/Show Build Folder in Finder, and navigate to.../Build/Intermediates.noindex/ArchiveIntermediates/SumsubPlugin_iOS/BuildProductsPath/Release-iphoneos/SumsubPlugin_iOS.framework. Right-click -> Show Original, then Copy (and replace)SumsubPlugin_iOS.frameworkto./SumsubUnityPlugin/iOS/.
- N/A