On 31 Oct 2016, at 14:19, Howard Shere <[email protected]> wrote:

> is there a way to request the com.apple.wifi.manager-access entitlement so 
> that our app can scan for wifi networks and connect to them?
> 
> Or is there some other entitlement we can request?

iOS does not have a general-purpose API for Wi-Fi scanning and configuration. 
However, there are a number of special-purpose APIs you might find useful:

* NEHotspotHelper (iOS) — If your app helps the user navigate a hotspot (a 
Wi-Fi network where the user must interact with the network to gain access to 
the wider Internet), you should look at NEHotspotHelper, part of the Network 
Extension framework. See the “Hotspot Network Subsystem Programming Guide” for 
details.

IMPORTANT: NEHotspotHelper requires that your app have special entitlements. 
The NEHotspotHelper API Reference has the details.

* accessory configuration (iOS) — If you want to configure an accessory to join 
the user’s local network (for example, you’re creating a companion app for a 
set of wireless speakers and the goal is to get those speakers on to the user’s 
home network), you should look at Wireless Accessory Configuration (WAC). To 
learn more about WAC watch:

- WWDC 2013 Session 700 Designing Accessories for iOS and OS X — This 
introduced WAC with the focus being on the Settings app.

- WWDC 2014 Session 701 Designing Accessories for iOS and OS X — This discusses 
enhancements we made in iOS 8 that allow developers to configure their WAC 
accessory from within their app.

IMPORTANT: To take advantage of WAC your accessory must be built under the 
aegis of the MFi program.

* peer-to-peer networking (iOS, macOS, tvOS) — If your goal is to communicate 
with other nearby devices, you should look at:

- NSNetService

- Multipeer Connectivity

Both of these support peer-to-peer networking over both Bluetooth and 
peer-to-peer Wi-Fi, although in the case of NSNetService you must opt in to 
that support by settings the includesPeerToPeer flag, as shown by Sample Code 
'WiTap'.

IMPORTANT: The on-the-wire protocols used by this peer-to-peer networking are 
not documented for third-party use, so this technique only works between Apple 
devices.

* location (iOS, macOS, tvOS, watchOS) — If you’d like to use Wi-Fi data to 
determine the device’s location, we recommend you use Core Location. This 
locates the device using a wide variety of techniques, including Wi-Fi. For 
more information, see the Maps page on the developer web site.

<https://developer.apple.com/maps/>

* current Wi-Fi network (iOS) — If you’re interested in getting the name of the 
Wi-Fi network to which the device is currently associated, you can call 
CNCopyCurrentNetworkInfo, part of the System Configuration framework.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to