CNCopyCurrentNetworkInfo return null value on iOS 15 Beta, even though VPN Profile is installed

As per the document, the following conditions should be met in order to retrieve network info:

  1. The app uses Core Location, and has the user’s authorization to use location information.
  2. The app uses the NEHotspotConfiguration API to configure the current Wi-Fi network.
  3. The app has an active VPN configuration installed.
  4. The app has an active NEDNSSettingsManager configuration installed.

In our case, the application relies on point 3 i.e installed VPN profile. But, I observed that CNCopyCurrentNetworkInfo always returns null even though a VPN profile is configured. This works fine with iOS 14.x versions.

I also tried using fetchCurrentWithCompletionHandler API. But, ended up with the same result.

Any help/lead would be highly appreciated.

Thanks in advance.

Replies

Yes, even I came across the same issue. Any help would be really appreciated. Thanks !

This issue is even happening on the iOS 15 Official release. Please do needful.