VPN permission: Make sure Android shows the VPN as connected

When you first launch the app, select a working configuration, then tap Start or enable the VPN service. Android’s connection prompt shows which app is requesting access. Check the app name, then tap OK or Allow. Next, open Settings and search for VPN to confirm that this Clash client is connected. Successfully importing a subscription only means the configuration is available; it does not grant Android VPN permission.

VpnService is Android’s VPN API. The client uses it to create a virtual network interface and receive traffic from the system, then the core decides how to route that traffic based on the current mode and configuration. The system’s “VPN connected” status only confirms that the tunnel is up; it doesn’t mean the nodes in your subscription are working. Node timeouts and a disconnected system VPN are separate issues, so troubleshoot them independently.

No permission prompt, or the VPN disconnects immediately

  • No prompt, but the VPN connects: If you’ve already granted permission, Android can start the VPN without asking you to confirm each time. Check the VPN status in Android Settings.
  • A different VPN is shown: Android usually allows only one active VPN per user or profile. Local firewall and filtering apps that use the VPN API may also occupy this slot. Check which app is active in Android Settings instead of relying on whether it connects to a remote server.
  • The previous app takes over again: Check whether “Always-on VPN” is enabled for the previous VPN. You can change this on a personal device if needed. For a work profile or managed device, contact your administrator about VPN policies.

Persistent notifications: Tell a hidden notification from a stopped VPN

The client typically maintains the connection with a foreground service and uses an ongoing notification to show its status. On Android 13 and later, notification permission and VPN permission are separate. If you deny notification permission, the foreground service may still run. Its notification might not appear in the notification shade, but the service may still be listed under Active apps. If you can’t see the notification, check the VPN status in Android Settings before assuming Android has stopped Clash in the background.

  1. Long-press the client icon and open App info → Notifications. Turn on app notifications. If notification categories are listed, check the one for the service or running status. Category names vary by client.
  2. Return to the client and connect, then go back to the home screen. Check whether the notification appears and whether Android still shows the VPN as connected. You need to check both to tell a hidden notification from a stopped VPN.
  3. Before testing with the screen locked, don’t tap Force stop in App info or Stop in the Active apps panel on Android 13 and later. These actions explicitly stop the app; changing battery settings won’t prevent that.

Per-app proxying: App selection comes before rule matching

In the client settings, look for “Per-app proxy,” “App access control,” or Access Control. Android’s app list determines which apps’ traffic enters the VPN. The core’s rules then determine which rule applies to connections that have entered the VPN. If an app is excluded, its connections don’t reach Clash through this VPN tunnel for rule matching. A DIRECT rule is different: the traffic has reached the core, but it isn’t routed through a proxy node.

List modeWhat happens to selected appsWhen to use it
Allow selected apps onlySelected apps use the VPN; all other apps are excluded from this tunnel.Start by selecting just one browser and checking whether its traffic reaches the core.
Exclude selected appsSelected apps are excluded from this tunnel; all other apps remain covered by the VPN.Use the VPN for most apps and exclude only those that need direct access to the local network.

After saving the list, stop and restart the VPN so the client can rebuild the interface with the updated selection. To test, open a new page in a selected browser, then look for a request made at the same time in the client’s connection list or logs. If tapping a link in one app opens a different browser, check whether the browser that actually made the request is on the list—not just the app where you tapped the link.

Battery optimization exemptions: Adjust settings for each Android version

Change battery settings only if the VPN actually disconnects when the app is in the background or the screen is locked. The paths below apply to the listed Android versions, but labels and menu locations can vary by device and software version. Start by long-pressing the home screen icon and opening App info; if you can’t find the setting, search in Android Settings. Adjust only the Clash client you use, and leave other apps’ battery settings unchanged.

Device and software versionSettings pathRecommended setting
Pixel · Android 14 / 15Settings → Apps → See all apps → select the client → App battery usage. If you see Allow background usage, tap the label to open its options.Allow background usage and, if available, select Unrestricted.
Samsung · One UI 6.1Settings → Battery → Background usage limits. On some models, open Battery through Battery and device care.Remove the client from Sleeping apps or Deep sleeping apps, then add it to Never auto sleeping apps. The label may vary slightly.
Xiaomi / Redmi · HyperOS 1Settings → Apps → Manage apps → select the client → Battery saver. Some versions offer per-app battery settings under Settings → Battery.Set the client to No restrictions. If your device has a separate Autostart in background option, troubleshoot it separately if the app doesn’t resume after a reboot.
OPPO · ColorOS 14Settings → Apps → App management → select the client → Battery usage. You can also search Android Settings for App battery management.If the app’s settings include Allow background activity, turn it on.

Battery exemptions reduce background restrictions; they don’t rebuild the tunnel or enable automatic connection at startup. If the VPN only fails to resume after a reboot, open Settings → VPN → the client’s settings (usually the gear icon) and check whether Always-on VPN is available. First confirm that the client can reconnect. Then consider Block connections without VPN: if startup fails or the tunnel drops, this setting may block network access. It isn’t required for an initial connection test.

Retest disconnects with the screen locked: Change one setting at a time

Keep the same configuration, node, and test app. Each time, note the Android version, client version, test time, system VPN status, and first error in the logs. Establish a baseline before changing one setting. If you change battery settings, nodes, and the per-app list all at once, you won’t know which change fixed the issue.

  1. Foreground baseline: Connect to the same Wi-Fi, start the VPN, and confirm that the test app loads a page and Android shows the VPN as connected. If it fails in the foreground, check the current configuration, selected node, and rules against the logs before changing battery settings.
  2. Screen-locked retest: Lock the screen for 5 minutes. After unlocking, check the VPN status in Android Settings and make a new request. If that works, repeat the test for 30 minutes. If the VPN disconnects only during this step, exempt the app from battery optimization and retest for the same amount of time. The 5- and 30-minute periods are observation windows for comparison, not fixed Android thresholds for stopping apps.
  3. Network-switch retest: Keep the screen on, switch from Wi-Fi to mobile data, and open a new page. Existing connections may be interrupted during a network switch; that doesn’t mean the service has stopped. If Android still shows the VPN as connected but new requests fail, first check whether mobile data works, then look for connection timeouts or DNS resolution errors in the logs.

If the issue affects only one app, cross-check with a second app on the same network, then review the access control list. If all apps fail and the VPN entry is disconnected, first check when the service stopped, the system’s battery settings, and whether another VPN took over. This helps distinguish an app excluded from the tunnel, a core routing failure, and a stopped service—without repeatedly changing the same subscription.