onCreate()
or didFinishLaunchingWithOptions
method of your Application
/ AppDelegate
class will ensure the SDK components are constructed, since these methods are guaranteed to finish before an intent or a notification is delivered to any broadcast receiver / delegate function.onCreate()
and didFinishLaunchingWithOptions
, it must be done synchronously on the main application (UI) thread. When onCreate()
or didFinishLaunchingWithOptions
is finished, init
should have already returned. Therefore, using DispatchQueue.main.async
or Handler.post(Runnable)
is not permitted.init()
or initWithConfig
if the SDK has not been initialized. Calling these methods more than once will throw an SdkException
or NSException
. This is intentional to guarantee single execution of the logic you've implement in the success method of your initialization callback.getInitState
. This will return one of the following enums:SENTInitialized
SENTNotInitialized
SENTInitInProgress
INITIALIZED
NOT_INITIALIZED
INIT_IN_PROGRESS