Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[network_info] ios: handle deprecation of CNCopyCurrentNetworkInfo #240

Closed
daadu opened this issue May 16, 2021 · 5 comments
Closed

[network_info] ios: handle deprecation of CNCopyCurrentNetworkInfo #240

daadu opened this issue May 16, 2021 · 5 comments
Labels
bug Something isn't working Hacktoberfest Issues taking part in Hacktoberfest ios network_info_plus

Comments

@daadu
Copy link
Member

daadu commented May 16, 2021

System info

Issue occurs on: iOS
Plugin name: network_info_plus
Plugin version: nil
Flutter doctor output: nil

CNCopyCurrentNetworkInfo is deprecated in iOS 14.0, it recommends to use NEHotspotNetwork
.fetchCurrentWithCompletionHandler
.

I am not a native iOS developer but as far as I read, the new method is part of HotspotHelper API which requires special entitlements from Apple (requesting them manually here).

Either

  1. deprecating iOS completely
  2. implement HotspotHelper API and integrate with current handler
@daadu
Copy link
Member Author

daadu commented May 16, 2021

Looks like fetchCurrentWithCompletionHandler does not require Hotspot Helper entitlement.

+fetchCurrentWithCompletionHandler: does not require the Hotspot Helper entitlement. Unfortunately that fact is not documented officially (r. 74976266). Fortunately, there’s lots of good info about this method in the doc comments in <NetworkExtension/NEHotspotNetwork.h>.

Share and Enjoy

from Official source in Apple forum - https://developer.apple.com/forums/thread/675211?answerId=664741022#664741022

@phan-dev
Copy link
Contributor

I got same issue.
Need someone implements that support iOS 14+

@miquelbeltran
Copy link
Member

You can be that someone 🌟

@daadu
Copy link
Member Author

daadu commented Jun 16, 2021

I am working on it on another plugin [flutternetwork/WiFiFlutter#150], will patch the same here once done.

@mhadaily
Copy link
Member

mhadaily commented Oct 3, 2021

version 1.3.0 published

@mhadaily mhadaily closed this as completed Oct 3, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Hacktoberfest Issues taking part in Hacktoberfest ios network_info_plus
Projects
None yet
Development

No branches or pull requests

4 participants