Hi I am developing iOS app for Camera Device (i need to connect with camera device like go pro). I need to present list of nearby wifi devices in the app. Based on discussions in developer forum, l understand that iOS policy discourage use of third party API and there is no support in native APIs for achieving this. Has anyone successfully tried recently? Appreciate any help in this.
to get near by wifi list and connect one of them.
I need to present list of nearby wifi devices in the app. Based on discussions in developer forum, l understand that iOS policy discourage use of third party API and there is no support in native APIs for achieving this.
Right, as QA1942 explains, there is no iOS API to scan for a list available Wi-Fi networks in an area. There are a few alternatives in this case for associating with a known SSID such as a camera device:
-
Use
NEHotspotConfigurationto use a predefined SSID and passphrase to create the network configuration directly from the app and then perform the association to the network. -
Use
NEHotspotConfigurationwith a prefixed SSID:init(ssid:passphrase:isWEP:)so that the app can associate with networks like the following:camera_123,camera_456, andcamera_789if you define the prefixed network like so:camera_. -
Alternatively you can setup the camera to communicate the SSID of the network to your app with a communication channel like Bluetooth, but that would assume that you have control over the device.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com