Skip to content

Connectivity plugin needs to update for iOS 13 due to the change in CNCopyCurrentNetworkInfo API #35332

@cyanglaz

Description

@cyanglaz

Quoted:

In iOS 13 the CNCopyCurrentNetworkInfo C function will return nil under most circumstances, 
except in some fairly restrictive cases. 
More on this in this thread on the Apple Developers forum for further explorations. 
This means apps may no longer be able to get network info 
(most commonly the Wi-Fi network SSID) with the same set of permissions in iOS 13.

CNCopyCurrentNetworkInfo is now only available to apps in three cases:
Apps with permission to access location
When the app is the currently enabled VPN app
When the app configured the WiFi network the device is currently using via NEHotspotConfiguration

Our connectivity plugin is using the CNCopyCurrentNetworkInfo API so looks like we will need a solution to handle this. Or maybe update the document on connectivity plugin to add location permission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: connectivityThe connectivity pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions