---
title: excludeAPNs
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nepackettunnelnetworksettings/excludeapns
---

# excludeAPNs

## Declaration

```swift
var excludeAPNs: Bool { get set }
```

## Discussion

Discussion If includeAllNetworks is set to YES and this property is set to YES, then network traffic for the Apple Push Notification service (APNs) is excluded from the tunnel. The default value of this property is YES. If either the includeAllNetworks property in NEVPNProtocol class is set, then the excludeAPNs property in NEVPNProtocol class takes precedence.
