Search…
1. iOS Checklist
Follow the step below to integrate the iOS SDK.

1. Installation

1.1 Dependency

2. Configuration

2.2 Background Modes
If you are going to use the Step Counter feature, you will need to enable Background Fetch in the capabilities and add a key to the app's plist: BGTaskSchedulerPermittedIdentifiers with an array item com.sentiance.backgroundtask.step_counter
2.3 Permissions

3. Usage

3.1 SentianceHelper.swift
3.2 Initialization & Background Collection

4. Data Collection & SDK User Creation

In order for the SDK to collect data the application would need to first "create a user" on the SDK. The "createUser" should ideally be called when the user registers, logs in.

4.2 Standard

4.1 createUser
4.2 linkFunction
4.3 User linking in your backend
4.4 linkFunction -> linkSuccess()

Verifying the Integration

You can verify the SDK integration by reading the following statuses from the SDK
SENTSDK.sharedInstance().getInitState()
INITIALIZED
SENTSDK.sharedInstance().getSdkStatus().startStatus
STARTED
Note: If you find the startStatus to be PENDING it usually implies that the user has not granted location:always permission. To know more, click here
You can continue reading through the next sections to get a deeper understanding of the integration and the SDK capabilities.