Shadowrocket Battery Drain: On Demand vs. Always-On Connections

Learn what drains iPhone battery in the background, compare On Demand and always-on connections, and set triggers for your usage.

At a glance

If you only need automatic connections on certain networks, start with narrowly scoped On Demand conditions. If you need a continuous connection, first check that it stays stable on your actual networks. On Demand controls when a connection starts automatically; it does not disconnect the tunnel after inactivity. This guide is for users who have configured their own connection and are investigating iPhone battery drain while idle or automatic reconnections after the screen locks.

01 · iPhone background battery drain: distinguish traffic from reconnections

Locking your screen turns off the display, but it does not stop all network activity. Syncing, messaging, and background downloads can still use data. While a tunnel is connected, the device and network handle that traffic; the connection protocol or network may also require keepalives. Unstable Wi-Fi or frequent switches to cellular can trigger additional activity as the connection is re-established. A VPN status icon alone does not show whether the tunnel is carrying a lot of data or repeatedly reconnecting.

2 navigation steps
Automatic connection settings: Shadowrocket → Settings → On Demand
2 network types
Test connection behavior on both Wi-Fi and cellular
4 connection states
Global Routing:Proxy / Direct / Config / Scene

On your iPhone, check Settings → Battery to find when the drain occurs, then compare that period with screen status and app activity. The percentages in the app list show each app's share of battery usage for the selected period; they do not show how many percentage points of battery that app used by itself. If iOS shows Background Activity, that indicates background activity but does not tell you how many reconnections occurred. Compare the timing with when you left Wi-Fi, entered a low-signal area, or started syncing.

What to do: reproduce the conditions first

If the drain mainly occurs after leaving Wi-Fi, reproduce the same network switch, then test idle battery use on a fixed Wi-Fi network. Don't compare cellular results from a commute directly with Wi-Fi results at home.

02 · On Demand vs. always-on: compare how long each stays connected

Here, “always-on connection” means turning off On Demand, manually starting the connection in Home, and leaving it on for the duration of the test. It is not a Global Routing option. On Demand lets the system start a connection when configured conditions are met. Battery use depends on connection time, traffic through the tunnel, and how often it reconnects; there is no fixed battery-saving percentage.

Usage scenarioOn DemandAlways-on connection
Connect only on a few networksYou can narrow the conditions that start a connection automatically. Check whether the tunnel actually disconnects when a connection is no longer needed.Disconnect manually when you're done; otherwise, the tunnel may continue handling background traffic.
Use for long periods on the same stable networkIf the connection stays on after a trigger, On Demand may not reduce tunnel uptime compared with keeping it connected manually.Use it as a baseline to check connection stability and whether battery drain is noticeable while the screen is locked.
Frequent network changes or an unavailable destination serviceIf the conditions still match, the connection may be triggered again. Check when the failures occur and how broadly the conditions apply.Network changes can also interrupt the tunnel. Turning off On Demand won't improve the underlying signal or make a service reachable.

Global Routing controls how traffic is handled after connecting. Selecting Direct does not disconnect the tunnel. In Config, DOMAIN-SUFFIX,example.com,DIRECT only routes traffic matching that example suffix through DIRECT; it cannot replace On Demand trigger conditions. For a battery comparison, keep the same Global Routing mode and Config so the traffic path doesn't change at the same time.

03 · Set up and test On Demand for your use case

Before you begin, check in Home that you can establish the connection manually. Use a stable network you’re authorized to access, and decide which networks should trigger an automatic connection and which should stay disconnected. First verify that the triggers behave as expected, then compare battery use.

  1. Open On Demand settings

    Go to Settings → On Demand in Shadowrocket. Note the current switches and conditions. For now, don't also change the connection, protocol, or Config, so you can restore the original settings if something goes wrong.

  2. Narrow the trigger conditions

    If the current screen offers conditions by network type or Wi-Fi name (SSID), start with just one scenario where you actually need a connection. If you can't express the required conditions separately, don't use a condition that applies to every network instead; manual connections are easier to test.

  3. Test each network switch

    After enabling On Demand, use an app that needs the connection on the target network, then check the tunnel status in Home. Switch to a network that should not trigger a connection and repeat from a disconnected state. Also test switching networks while the tunnel is already connected to distinguish a connection that stayed up from one newly established after disconnecting.

  4. Compare battery use

    With similar starting battery levels, signal strength, and workloads, run two 60-minute screen-locked tests: one with On Demand off and the connection kept on manually, and one using On Demand under your usual conditions. Record the starting and ending battery levels, network changes, and any observed disconnections. If the tunnel stays connected in both tests, the results won't show how much battery narrowing the trigger conditions saves.

  5. Check the disconnected baseline

    If it won't interfere with work or access requirements, run a third test for the same length of time with On Demand off and the connection disconnected in Home. Avoid charging, system updates, and large file syncs during all three tests. If the difference is only one percentage point, observe for longer or repeat the tests rather than drawing conclusions from a single reading.

04 · Troubleshoot automatic reconnects and connection timeouts

A connection coming back after you manually disconnect does not necessarily mean something is wrong. If automatic connection conditions are still active, a later network event or request may trigger another connection. To troubleshoot, first turn off automatic triggers in Settings → On Demand, then disconnect in Home. If the VPN still reconnects, check which VPN configuration is active in iPhone Settings rather than relying on the status icon alone.

System connection timeout message

Error: The VPN server did not respond.

Possible causes: The expected response did not arrive while the connection was being established. The current network may not be able to reach the service, the address or port may be incorrect, or the service may be temporarily unavailable. The message alone can't identify which one.

What to do: Turn off On Demand, then try connecting manually from Home on a stable network. If it still fails, check the address and port provided by your service provider and confirm the service is available before turning automatic triggers back on.

05 · Choose a connection method based on your results

Get Shadowrocket and connection setup guides

Get Shadowrocket for iPhone and iPad on the App Store for a one-time $2.99 purchase. Check the App Store listing for system requirements. Shadowrocket for Mac (Apple silicon and Intel), Windows, Android, and Linux is free and available from this site's download page.

Download Shadowrocket