-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Description
Problem
With the changes to iOS 13, CNCopyCurrentNetworkInfo will return invalid SSID and BSSID values. This leads to the connectivity plugin returning invalid values for the getWifiName() and getWifiBSSID() methods.
Use case
Apps that require valid SSID and BSSID values to be returned within iOS 13.
Proposal
Update the connectivity plugin iOS code to request one of the authorizations required to return valid SSID and BSSID values with: requestWhenInUseAuthorization() or requestAlwaysAuthorization()
More Info
The announcement email from apple:

The documentation for CNCopyCurrentNetworkInfo:https://developer.apple.com/documentation/systemconfiguration/1614126-cncopycurrentnetworkinfo.
Info for requesting the "When In Use" Location authorization: https://developer.apple.com/documentation/corelocation/choosing_the_authorization_level_for_location_services/requesting_when-in-use_authorization?language=objc
Info for requesting the "Always" Location authorization: https://developer.apple.com/documentation/corelocation/choosing_the_authorization_level_for_location_services/requesting_always_authorization