Victor-Studio / ZRNetworkOC

This project provides interfaces contain Carrier Info, Signal Info, WiFi Info, SSID Info, ifconfig Info, ARP List/Table and IP Attribution info.
3 stars 4 forks source link

Could give me some method for get wifi list #1

Open VVinciYang opened 7 years ago

VVinciYang commented 7 years ago

Hope you can provide for the realization of the function of the wifi list.Thank you

VictorZhang2014 commented 7 years ago

Since Apple adjusted the rules of getting WiFi List, you have to do the following steps that will help you to get WiFi List.

  1. Use of NEHotspotHelper to get WiFi List First, you gotta configure the following code
    <key>UIBackgroundModes</key>
    <array>
        <string>network-authentication </string>
    </array>

2.Add an item into YourProjectName.entitlements file with in details of the below

com.apple.developer.networking.HotspotHelper值为true

3.Due to Apple related staff copes with it tooooo slowly, so you have to send an email to Apple Apple Network related Email : networkextension@apple.com

In fact, I failed to get access to use this APIs, because of the application in my company is not used for large-scale WiFi Aggregators that Apple responded.

Related Answers :

It will be denied if your application is not used for Hotspot Helper in your Application Form http://stackoverflow.com/questions/31555640/how-to-get-wifi-ssid-in-ios9-after-captivenetwork-is-deprecated-and-calls-for-wi

This is my request, but no answer up to now https://forums.developer.apple.com/message/224415

How to add NEHotspotHelper entitlements? https://forums.developer.apple.com/thread/9015

An Apple Staff answered about Network Extension Framework Entitlements https://forums.developer.apple.com/message/84910#84910

An Apple Staff answered about Network Extension Framework Entitlements https://forums.developer.apple.com/thread/67613

VVinciYang commented 7 years ago

Do you know about the private framework as MobileWiFi.framework,that is replace the obsolete Apple80211 framework. Related : https://github.com/kasumar/WiFiScanner http://iphonedevwiki.net/index.php/MobileWiFi.framework#References

But unfortunately I can't correctly compile it.If you have experience of using private framework I hope you can help me。

VictorZhang2014 commented 7 years ago

Missing MobileWiFi.framework, so the project can't be running. And it's hard to find MobileWiFi.framework out in google. Maybe you find it some day , you can use drag MobileWiFi.framework to the project and then run it.

But I haven't find it out, if you find it tell me soon.

VVinciYang commented 7 years ago

I find that framework and drag it into my project ,but no use,can you give me your email ,we can talk through it.

this is the MobileWiFi.frame : image

but the framework don't have header folder.even if you drap it to your project ,it no use.