Contents

matchEthernet

A property that indicates Ethernet support for Local Push Connectivity.

Declaration

var matchEthernet: Bool { get set }

Discussion

If this value is true (Swift) or YES (Objective-C), the system starts the NEAppPushProvider when the following criteria are true:

  • The iOS device is connected to an Ethernet network.

  • The Ethernet network is the primary route on the device.

Have your NEAppPushProvider determine that its functionality is viable on the network. If the network doesn’t support the provider running over Ethernet, your provider needs to call unmatchEthernet() to stop itself.