Changing session timeout length

If you need to change your session timeout interval, you must integrate manually.

We recommend that you leave your session timeout length at the default, 15 seconds, unless you have a specific reason to change it. You might change the session timeout interval if you view sessions in your app as continuing even though your app is in the background. Maybe your app streams music, or maybe you want to count engagements in 24-hour intervals.

Designate your session timeout interval by making the following call, where 10 is the session timeout interval in seconds, as early as possible in your app -- either just before or just after your integration.

For iOS

 [Localytics setSessionTimeoutInterval:10]; 

For Unity iOS

Localytics.SessionTimeoutInterval = 10;  
Note: On iOS, if your app leaves memory, the session will end no matter the setting of the session timeout interval. Apps can leave memory for many reasons that are out of your control, such as a device restart, manual close of the app, or if the app is purged after being suspended.

For Android

Localytics.setSessionTimeoutInterval(10); 

For WinRT

Localytics.SessionTimeoutInterval = TimeSpan.FromSeconds(10)