A manager that applies and removes hotspot configurations of Wi-Fi networks.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- Network
Extension
Declaration
class NEHotspotConfigurationManager : NSObject
Overview
When your app creates a new hotspot configuration using NEHotspot
and applies it to a Wi-Fi network or attempts to update a previously configured network, the device prompts the user for approval. Without explicit user consent, your app can't make configuration changes.
Your app can use remove
or remove
to delete a configuration that it has added, but not a configuration added by another app or user. The user can also delete configured networks using Settings > Wi-Fi.
When your app is uninstalled, iOS removes the configurations of all networks your app has configured, including their keychain entries.
Hotspot Configuration Manager errors are listed in NEHotspot
.
Important
To use the NEHotspot
class, you must enable the Hotspot Configuration capability in Xcode. For more information, see Hotspot Configuration Entitlement
.