Disabling Automatic SDK Initialization
If you prefer to control when the SDK starts, you can disable the autostart feature and programmatically start the SDK when needed.
The first step is to add the required key to your Info.plist
. The key is CSDisableAutostart
of type boolean. To disable the autostart, you need to set its value to true
:
-
Disable autostart using Xcode:
-
Disable autostart using a text editor:
Then just call start
in the application:didFinishLaunchingWithOptions:
of your UIApplicationDelegate
like this:
When you call the start method, the SDK automatically starts tracking users’ interactions with the app (gestures, lifecycle events and crashes).