Made so that in iOS screen app mode the session is not reset when switching apps