How to fix Kite logging out when switching apps
The Kite app logs you out when you switch to another app, such as an authenticator app to copy a time-based one-time password (TOTP), because your device is in power-saving mode or is preventing Kite from running in the background; the operating system kills the backgrounded app and drops your session. Per Zerodha’s own support article, this is a power-management behaviour, not a deliberate security lock that triggers on app switch. The fix is to stop the OS from suspending Kite: turn off power saving, exempt Kite from battery optimisation, or sidestep the switch entirely by using device-lock biometric login instead of TOTP.
This guide explains the real cause, the exact Android and iOS battery settings to change, the background-running exemption, the app-data reset of last resort, and the cleanest structural fix, which is to switch your second factor so you never have to leave Kite to read a code. The fixes take under five minutes and cost nothing.
Conflict-of-interest disclosure. This guide is published by the WebNotes Editorial Team for informational purposes and is written independently. WebNotes operates a Zerodha account-opening referral programme, disclosed on the pages that carry the referral link; this guide does not carry it and earns no referral commission from the procedure described here.
Step-by-step procedure
The numbered box at the top of this guide gives the sequence. The detail below expands the cause, the per-OS battery settings, and the structural workaround.
1. Recognise the cause
The logout looks like a security lock, but it is the OS reclaiming memory. When Kite loses focus, an aggressive power saver or a background restriction can terminate the process, and a terminated process loses its session. Zerodha states plainly that the app “logs out when you switch to another app or minimise it because your device is in power-saving mode or is preventing the application from running in the background.” Treat it as a battery setting to fix, not a Kite bug to report. The same root cause is why a backgrounded Kite sometimes shows a blank screen or stale data on return.
2. Turn off power saving on Android
On Android, open Phone settings, then Battery, and either change the power plan to performance or turn off power-saving mode. Power-saving and “adaptive battery” profiles suspend apps that lose focus, which is exactly what drops the Kite session when you tab over to Google Authenticator, Authy, or Microsoft Authenticator. With the profile set to performance, the OS leaves Kite alive in the background for the few seconds you need to copy a code.
3. Turn off Low Power Mode on iOS
On iOS, open Settings, then Battery, and turn off Low Power Mode. Low Power Mode pauses background activity to save charge, and a paused Kite session can be torn down when you switch to your authenticator. With Low Power Mode off, iOS keeps Kite resident long enough to survive a brief switch. Re-enable Low Power Mode later if you want; just expect the logout to return while it is on.
4. Allow Kite to run in the background
Beyond the global power mode, exempt Kite specifically. On Android, find Kite in the battery settings and set it to Not optimised, and allow it to run in the background and keep running when the screen is off. On iOS, enable Background App Refresh for Kite. This per-app exemption is the durable fix, because it survives even when a system-wide battery saver kicks in at low charge. Avoid third-party app-killer or “RAM cleaner” utilities, which undo this by force-stopping Kite.
5. Clear the app data if it persists
If Kite still logs out on switch after the battery changes, clear the Kite application data from your phone settings, then reopen and log in fresh. This clears a corrupted local cache that can confuse the session state. It removes only the local app state and logs you out; your account, holdings, funds, and orders are on Zerodha’s servers and are not touched. After clearing, run the normal login again.
6. Avoid the switch with device-lock login
The cleanest fix removes the app switch altogether. If you authenticate with device-lock biometric login instead of TOTP, the second factor is a fingerprint or Face ID prompt inside the Kite login flow, so you never leave Kite to copy a code, and there is nothing to switch to. Switch the factor under How to enable device lock on Kite , or change it under How to reset 2FA at Zerodha . For traders on a single phone, this is the structural answer; the battery settings are the fix if you want to keep TOTP.
Why TOTP on the same phone creates the friction
The logout bites hardest in one workflow: you trade and hold your authenticator on the same phone. To log in you enter your password, then you must read a TOTP that lives in a separate app, so you switch away, and the power saver kills Kite while you are gone. When you switch back, the session is dead and you start over. The Kite app code framework offers TOTP and device lock as the two second-factor choices; TOTP is the one that forces an app switch on a single device, and device lock is the one that does not. Compare them in Kite app code: TOTP versus SMS OTP .
If you keep TOTP, two habits reduce the pain even before the battery fix lands. Read or copy the code in the authenticator just before you start the Kite login, so the switch is as brief as possible. Or run the authenticator on a second device, a tablet or a desktop authenticator, so reading the code never backgrounds Kite at all. Authy, for instance, syncs tokens across devices, so you can read the code on a desktop while logging in on the phone.
The five-minute login window interaction
There is a second timer at play. You must enter your 2FA within five minutes of entering your login credentials. If a power saver kills Kite mid-switch and you fumble back in, you can blow past that five-minute window, at which point the login itself expires and you restart from your password regardless of the session question. So the battery fix and the five-minute limit compound: the slower the switch, the more likely both fail. Fixing the background behaviour, or removing the switch with device lock, addresses both at once.
How this differs from the daily regulatory logout
Do not confuse this app-switch logout with the daily forced logout that every Kite user sees. Under SEBI’s framework, Zerodha logs all users out at the end of each trading day, so a fresh login each morning is normal and unrelated to your battery settings. That is the risk-disclosure-on-every-login flow working as designed. The app-switch logout, by contrast, happens mid-session and repeatedly, and it is a power-management problem you can fix on your phone. If your “logout” is once a day at session end, nothing here applies; if it is every time you reach for your authenticator, this guide is the fix.
See also
- Kite by Zerodha
- Zerodha
- How to enable device lock on Kite
- How to enable biometric login on Kite
- How to set up TOTP at Zerodha
- How to disable TOTP at Zerodha
- How to recover a lost TOTP at Zerodha
- How to fix an invalid TOTP at Zerodha
- How to reset 2FA at Zerodha
- How to remove a temporary OTP on Kite
- How to unblock a blocked Kite account
- How to recover your Kite PIN
- How to recover your Kite password
- How to reset the Zerodha support code (ZPin)
- Kite app code
- Kite app code: TOTP versus SMS OTP
- Why a risk disclosure appears on every Kite login
- Why Zerodha uses separate apps
- How to fix Kite charting lag
- How to fix a blank Kite chart on open
- Zerodha cyber security
- How to secure your trading account
- Zerodha Console
- SEBI
External references
- Zerodha support: Why does the Kite app log out when I switch to another app?
- Zerodha support: How do I log in to the Kite app?
- Zerodha support: How to enable device lock on mobile?
- Zerodha Z-Connect: Two factor authentication (2FA)
- SEBI
References
- Zerodha support, Why does the Kite app log out when I switch to another app? (power-saving and background-restriction cause; Android and iOS battery fixes; as of 20 June 2026).
- Zerodha support, How do I log in to the Kite app? (five-minute window to enter 2FA; as of 20 June 2026).
- SEBI, Cyber Security and Cyber Resilience framework for Stock Brokers and Depository Participants (end-of-day forced logout and two-factor authentication).
WebNotes Editorial Team prepares factual how-to guides based on publicly available regulatory documents and broker disclosures. WebNotes is not affiliated with Zerodha Broking Limited. Procedures are subject to change; verify current requirements at support.zerodha.com before acting.