Deskto app: Five minutes
Web app: Five minutes. Note: We don't have a way to detect activity in other apps or in other tabs in the same browser. So, if you're working in another tab your client would go offline in five minutes.
iPhone/iPad/Android apps: These apps do not set you as idle.