setIsSessionStartBasedTimeoutEnabled

fun setIsSessionStartBasedTimeoutEnabled(isSessionStartBasedTimeoutEnabled: Boolean): BrazeConfig.Builder

Sets the session timeout behavior to be either session-start or session-end based. When true, the session timeout and eventual session end is calculated using the timestamp of the start of the session. When false, the session timeout and eventual session end is calculated using the end of the session.

Defaults to false.

Previously, the default session behavior was the equivalent of setting this to false. I.e. sessions would be closed after timeout seconds after the end of the last session. When set to true, sessions close after the start of the session + timeout. Note that the session must be closed for a short period of time (10 seconds) for the session to be ended. This is to prevent sessions from ending while the user is in the app.

The use of this flag is recommended for long (30 minutes or longer) session timeout values.

Parameters

isSessionStartBasedTimeoutEnabled

Whether the session start timeout behavior is enabled