Hi my app us using NEHotspotConfigurationManager
to connect some local network.
I have a logic in the app to check what is SSID of the current connected WiFi network. For this i was using CNCopyCurrentNetworkInfo function. But according to documentation it is deprecated and I should use NEHotspotNetwork.fetchCurrent(completionHandler:).
The thing is that sometimes when i call this method the completion handler is not called so my app wait long time and nothing happens.
Any advice what can be wrong or how to solved this?
using Xcode 12.3, iOS 14.2 and iPhone 11.
12
0
11k