<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotNetwork/fetchCurrent(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEHotspotNetwork(cm)fetchCurrentWithCompletionHandler:"
  },
  "title" : "fetchCurrent(completionHandler:)"
}
-->

# fetchCurrent(completionHandler:)

Fetches information about the current Wi-Fi network.

```
class func fetchCurrent(completionHandler: @escaping @Sendable (NEHotspotNetwork?) -> Void)
```

## Parameters

`completionHandler`

A Swift closure or an ObjectiveC block that receives an [`NEHotspotNetwork`](/documentation/NetworkExtension/NEHotspotNetwork) instance that contains the current SSID, BSSID, and security type.
This call doesn’t populate other fields in the object.
The block executes on the main thread and only after the call obtains the current Wi-Fi parameters from the system.
If any of the criteria discussed below aren’t fulfilled, the `currentNetwork` parameter received by completion handler is `nil`.

## Discussion

This method produces a non-`nil` [`NEHotspotNetwork`](/documentation/NetworkExtension/NEHotspotNetwork) object only when the requesting app meets at least one of the following criteria:

- The app is using the <doc://com.apple.documentation/documentation/CoreLocation> API and has user’s authorization to access precise location.
- The app used the [`NEHotspotConfiguration`](/documentation/NetworkExtension/NEHotspotConfiguration) API to configure the current Wi-Fi network.
- The app has active VPN configurations installed.
- The app has an active [`NEDNSSettingsManager`](/documentation/NetworkExtension/NEDNSSettingsManager) configuration installed.

This method also requires the app to have the <doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.networking.wifi-info>, and produces `nil` if the app lacks this entitlement.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)