List of nearby wifi hotspots-objective C
I am a new Objective C programmer. I need some help. I am developing an app in which if the internet connection is not google reachable, it should open up the browser and should check for Wifi Hotspot process. I googled for this b开发者_C百科ut couldnot find any information regarding this. Please help me.
This is actually not code, this is something you have to put on your Info.plist file.
What you are looking for is:
UIRequiresPersistentWiFi
or Application uses Wifi
Here is what Apple has to say about it:
If your application accesses the network using the Wi-Fi radios, you must notify the system of that fact by including the
UIRequiresPersistentWiFi
key in the application’s Info.plist file. The inclusion of this key lets the system know that it should display the network selection panel if it detects any active Wi-Fi hot spots. It also lets the system know that it should not attempt to shut down the Wi-Fi hardware while your application is running.
精彩评论