# Third-party clients: Apple push notifications (Telegram, X and others) do not arrive

On mainland-China networks, an iPhone or iPad may not get push notifications from Telegram, X and other foreign apps. Sending Apple push (APNs) through the proxy can help. This page is for people who use a subscription link in a third-party client. With VilaNet it is simpler: "Settings" → "Connection" → "Advanced Settings" → "Apple notifications & system traffic", check that "Route Apple Push via Proxy" is on (on by default), turn on "Capture All Network Traffic", then reconnect the VPN.

## First, the trade-offs

After you turn on the switches in step 2 below:

- **If the VPN drops unexpectedly or the server is down, push from all apps stops**, Chinese apps included, until the VPN recovers. Turning the VPN off yourself does not cause this.
- **Personal Hotspot:** devices connected to the iPhone hotspot can lose internet. Turn the switch off while you use the hotspot.
- **Wi-Fi Calling, SMS, MMS and CarPlay** can be affected.

## Two things to do

1. **Add rules** that send `push.apple.com` to the proxy. The rules below also include the push address ranges that Apple lists in [support article 102266](https://support.apple.com/102266), as a backup.
2. **Turn on the client's "include all networks" and push switches.** Users and client vendors report that with rules alone, push often still bypasses the VPN, especially on cellular.

Put the rules **above** `GEOIP,CN`, your China-direct rules and any Apple-direct rule such as `DOMAIN-SUFFIX,apple.com,DIRECT`. Otherwise those rules match push first and send it direct.

## Rules

Shadowrocket, Surge and Loon use the `[Rule]` section. Replace `PROXY` with your proxy policy or group name:

```ini
DOMAIN-SUFFIX,push.apple.com,PROXY
IP-CIDR,17.249.0.0/16,PROXY,no-resolve
IP-CIDR,17.252.0.0/16,PROXY,no-resolve
IP-CIDR,17.57.144.0/22,PROXY,no-resolve
IP-CIDR,17.188.128.0/18,PROXY,no-resolve
IP-CIDR,17.188.20.0/23,PROXY,no-resolve
IP-CIDR6,2620:149:a44::/48,PROXY,no-resolve
IP-CIDR6,2403:300:a42::/48,PROXY,no-resolve
IP-CIDR6,2403:300:a51::/48,PROXY,no-resolve
IP-CIDR6,2a01:b740:a42::/48,PROXY,no-resolve
```

For Stash and Clash clients (Clash Verge Rev, mihomo), insert these lines into your existing `rules:` list and replace `PROXY` the same way:

```yaml
rules:
  - DOMAIN-SUFFIX,push.apple.com,PROXY
  - IP-CIDR,17.249.0.0/16,PROXY,no-resolve
  - IP-CIDR,17.252.0.0/16,PROXY,no-resolve
  - IP-CIDR,17.57.144.0/22,PROXY,no-resolve
  - IP-CIDR,17.188.128.0/18,PROXY,no-resolve
  - IP-CIDR,17.188.20.0/23,PROXY,no-resolve
  - IP-CIDR6,2620:149:a44::/48,PROXY,no-resolve
  - IP-CIDR6,2403:300:a42::/48,PROXY,no-resolve
  - IP-CIDR6,2403:300:a51::/48,PROXY,no-resolve
  - IP-CIDR6,2a01:b740:a42::/48,PROXY,no-resolve
```

Do not send all of `17.0.0.0/8` to the proxy. That block also carries the App Store, iCloud and other Apple services, and proxying all of it changes their route. The Stash FAQ also advises against it.

## Switches in each client

| Client | Push-related switch | How far we checked |
|---|---|---|
| Shadowrocket (iPhone, iPad) | Turn on "Include All Networks" and "Include APNs", then "Reconnect VPN" | Option names checked in version 2.2.93; not tested on a device |
| Surge (iPhone, iPad) | Add `include-all-networks = true` and `include-apns = true` to `[General]` | From the official Surge manual; not tested |
| Stash (iPhone, iPad) | Turn on Stash's system-level Apple push (APNs) proxy option | The Stash FAQ names the option but not where it is; not tested |
| Loon | The official docs show no option that sends push into the tunnel; with rules alone, push may still fail on cellular | Not tested |
| Clash Verge Rev (Mac, Windows, Linux; no iPhone version) | No APNs-specific switch; this problem is mainly on iPhone and iPad | Rule syntax tested on a Mac with mihomo 1.19.34 |

In Surge, `include-apns` only takes effect together with `include-all-networks`.

## After the change

1. Disconnect the VPN and connect again.
2. (Optional, from user experience) If push still does not arrive after a few minutes, turn Airplane Mode on and off once so the iPhone reconnects to Apple's push servers.
3. Send Telegram or another app to the background, ask a friend to send a new message, and check that the push arrives.

## What we tested

On 2 December 2026 we tested the YAML rules above with mihomo 1.19.34 on a Mac. Connections to `init.push.apple.com`, `1-courier.push.apple.com`, `17.57.145.10:5223` and `[2403:300:a42::10]:5223` all matched `PROXY`. Without the rules, the same connections went to the final catch-all rule. This only proves the rule syntax. We did not test the client switches on a device, and whether push comes back in mainland China can differ by app and by carrier.

## Related pages

- [Third-party V2Ray apps](/en/legacy-clients/third-party-v2ray/)
- [Connected but no internet](/en/troubleshooting/connected-but-no-internet/)
