iOS integration
This guide will walk you through integrating the Mobile Wallet SDK into your iOS app.
This guide will walk you through integrating the Mobile Wallet SDK into your iOS app.
Step 1: Adding Saakuru Mobile Wallet SDK to your project
To begin integrating the Saakuru Mobile Wallet 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:
Step 2: Add the following code to your Podfile:
Step 3: Setup event handler
Step 4: Creating User Session
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 https://github.com/AAG-Ventures/ios-sdk-demo
Last updated