This guide will walk you through integrating the Saakuru SDK into your iOS app.

Step 1: Adding Saakuru Mobile SDK to your project

To begin integrating the Saakuru Mobile SDK into your iOS application, you need to add the SDK dependencies to your project. The SDK package is hosted on Cocoapods, making it easy to include in your app using your project’s podfile:

Create a .plist file named metaoneSDKConfig and add following config:

<?xml version="1.0" encoding="UTF-8"?>`
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>test (test(testnet), stage(mainnet), prod(mainnet))</string>
<string>given by aag</string>
<string>your personal SDK configuration json url</string>
<string>given by aag</string>
<string>given by aag</string>
<string>given by aag</string>

Step 2: Add the following code to your Podfile:

  pod "metaoneSDK", "~> 1.8.4"  
  pod "CYBAVOWallet", :git => '<'`>

Step 3: Setup event handler

subscription = { event in  
   switch event {  
   case .showSDKUI:  
	//Render metaoneSDKManager().sdkView  
        isShowingSDKContent = true  
   case .hideSDKUI:  
        isShowingSDKContent = false  
   @unknown default:  

Step 4: Creating User Session

Import metaoneSDK  
Initialize sdkManager - var sdkManager = MetaOneSDKManager()  
Initialize sdk - sdkManager.initialize()

To successfully initialize a user session your back-end integration has to be ready first.
Your backend should receive an Authorization token during the initialization request.
Initialize the session by calling: metaOneSDKManager.login(token, this, callback)

Your session is initialized. You can now use all other functions that require Authorization.

Call metaOneSDKManager.setup() to initialize user profile data

Demo app project