A simple login view application that uses the Sentiance SDK inside a Swift project.
Steps applied: Sentiance iOS SDK docs
In a login view application, you will want to start the SDK only if the user is logged in. Most of the time, you will run the SDK from the AppDelegate, therefore you need to make sure that it doesn't get started if the user hasn't logged in yet. The same logic applies once the user has passed the login view, at that point you should start the SDK. Once the user is logged in, the SDK should always start from the AppDelegate.
- Request a developer account by contacting Sentiance.
- Grab your test app credentials from here.
- Download and extract the latest framwork file from the sentiance ios sdk docs
- Place the extracted framework in the repository root path
open SDKStarter.xcodeproj
- In
SDKStarter/AppDelegate.swift
: replaceAPP_ID
andAPP_SECRET
with the credentials from the application you added in step 2. - Clean, build and run the application on your device