3. Initialization
Last updated
Last updated
Initialization sets up internal SDK components to allow the creation of a Sentiance user on the device, and perform detections in the background.
Only a limited set of SDK functions are allowed to be invoked before initializing the SDK.
The correct way to natively initialize on iOS is to do it inside the application:didFinishLaunchingWithOptions:
method of the AppDelegate
class.
In order to initialize the SDK, add the following line inside the onCreate()
method of your Application
class: