If a VPN (a virtual private network, an encrypted tunnel for traffic) disconnects after the phone is locked, on Android check the app's battery restrictions. On iPhone, compare how it behaves with and without Low Power Mode. When switching from Wi-Fi to mobile data, a short pause may occur: check whether the tunnel reconnects automatically. These scenarios require different settings.
The connection drops at a specific point
First, identify the scenario. Keep one client and one server so you can tell which setting made the difference.
| When the VPN drops | Android | iPhone |
|---|---|---|
| After locking | Check sleep and battery restrictions | Check the app or profile behaviour during sleep |
| During power saving | The system restricts background activity and networking | Apple lists background restrictions but does not mention VPN |
| When another VPN or protection app starts | A second VPN stops the first within the same profile | Check which connection is active |
If disconnections also occur with the screen on, on a single network, see the overview of all reasons a VPN disconnects.
Android restricts the client's background operation
Doze, the deep sleep mode, kicks in when the phone has been stationary for some time, is not charging and its screen is off. The system suspends network access for apps, periodically opening short maintenance windows for data exchange.
App Standby separately restricts apps that have not been used for a long time. A VPN client usually runs as a foreground service with a persistent notification. This exempts it from App Standby, but does not guarantee an exemption from Doze. Android's documentation does not describe specific VPN clients: their behaviour depends on the implementation and firmware.
Power saving delays the background connection
Battery saver restricts background activity and network connections. Check the app that establishes the tunnel.
- Disable battery saving via "Settings → Battery → Battery Saver" for the duration of the test.
- Open the battery settings for the VPN app.
- Allow it to run unrestricted, if that option is available.
- Repeat the test with the screen locked.
If the menu path differs, find the app's settings using the system search: the names vary on Samsung, Xiaomi and Pixel.
To connect CitadelVPN on Android, import the subscription link the service provides into a compatible client such as v2rayNG or Hiddify. Then exempt that specific client from battery optimisation and test the screen lock. The subscription itself does not remove the phone's restrictions.
A second VPN stops the first
Android allows one active VPN service per user or profile. An antivirus's "connection protection" can also take that slot if it works via a VPN.
Check the list of connections. On a personal phone, disable the competing VPN while diagnosing. If the device is a work device managed by an organisation, pass your observations to its IT department: do not change the profile or controls yourself.
The tunnel does not reconnect automatically
Always-on VPN has been available since Android 7.0. The system starts and maintains the VPN service, while the client itself restores the connection to the server. The mode helps reconnect the tunnel automatically, provided the app supports it and the network is available.
Find "VPN" in the settings and enable the always-on connection if the toggle is there.
On iPhone you need to check Low Power Mode and the profile
Low Power Mode disables background app refresh, automatic downloads and mail fetching. However, Apple does not list VPN among the restrictions. You cannot claim that the mode necessarily breaks the tunnel: compare how things work with and without it.
- Open "Settings → Battery → Power Mode" on iPhone 15 and later, or "Settings → Battery" on iPhone 14 and earlier.
- Turn off Low Power Mode.
- Repeat the scenario after which the connection dropped.
If the disconnection persists, check the client's automatic reconnection. Apple's disconnectOnSleep parameter controls disconnection on sleep and is off by default. It is set by the app or the configuration, not by the user in the ordinary settings.
For built-in IKEv2 profiles (the version 2 key exchange protocol that negotiates a secure connection), there is a separate DPD check (dead peer detection). By default it runs every 10 minutes. This is not a mandatory 10-minute disconnect timer and not a setting of any third-party client.
The VPN breaks when the network changes
When switching from Wi-Fi to mobile data, the IP address (the Internet Protocol address used for data transmission) changes. The tunnel needs to continue its exchange through the new address, so a short pause is possible.
WireGuard sends encrypted data to the last address and port from which it received successfully authenticated data from the other side. This is how the protocol learns the client's new location. This is support for address changes, not a guarantee of a switch without pauses in every app.
In IKEv2, MOBIKE (the mobility and multi-homing extension) serves this purpose. It allows addresses to be updated without fully re-establishing the secure connection, provided both sides support it. On Apple's built-in IKEv2 profiles, MOBIKE is enabled by default. Connections without support for such a transition require a reconnect.
Leave Wi-Fi coverage with mobile data enabled. Check whether the VPN reconnects on its own. If you have to open the client every time, record that symptom separately from disconnections after locking.
The VPN breaks when the network changes
When switching from Wi-Fi to mobile data, the IP address (the Internet Protocol address used for data transmission) changes.
This is support for address changes, not a guarantee of a switch without pauses in every app.
Connections without support for such a transition require a reconnect.
A 10–15 minute test helps narrow down the cause
Run a comparison, changing one condition at a time.
- Lock the phone with the VPN active for 10–15 minutes without charging, leaving it stationary.
- Note the connection state after unlocking.
- Repeat the test while charging.
- Repeat the test without charging, with Low Power Mode off.
- Test the switch from Wi-Fi to mobile data with the screen on.
If the client keeps an event log, look at the time of the disconnection: the status after unlocking may reflect an already restored connection.
| Result | Next check |
|---|---|
| The connection drops without charging but holds while charging | The client's sleep and battery restrictions |
| With Low Power Mode off, the disconnection no longer occurs | The effect of that mode upon retesting |
| A manual launch is needed only after a network change | The client's automatic reconnection |
| The disconnection occurs after inactivity even with the screen on | Idle timeouts |
If the failure occurs only at night, repeat the test over your usual interval: 10–15 minutes does not guarantee that the device will go through every stage of Doze. If the disconnection depends on a lack of traffic, see the overview of idle timeouts and keepalives.
What do Android's settings and notifications mean?
Why is there no always-on VPN option for my app?
Google's help page notes that this item is absent from the system menu for connections made through an app. Check the client's own settings: the feature's availability depends on the app's implementation and the system version.
Why won't the disconnection notification go away?
Android keeps the notification about a non-working always-on VPN until the connection is restored. Open it to check the connection; dismissing the notification does not fix the disconnection.
Why block connections without a VPN?
It forbids traffic bypassing the tunnel. If the VPN drops, the internet will disappear until it is restored: this is a consequence of the chosen protection. Enable it if you want to prohibit direct connections, bearing this pause in mind.
Which settings to check first
On Android, check the specific client's battery restrictions, the conflict between two VPNs and the availability of an always-on connection. On iPhone, compare how things work with and without Low Power Mode; disconnection on sleep may be set by the app or the profile.
If a manual launch is needed after locking or a network change, give the client's support team the phone model, system version, time of the disconnection and the results of the comparison while charging and not charging.