Clarity starts recording your users' behavior once they open the app and stops once they send it to the background or close it.
If the app comes again into focus within a 30-minute interval from session start, recording resumes, else the session expires and a new session begins.