View Single Post
  #2 (permalink)  
Old July 30th, 2013, 09:54 AM
nathanhjones nathanhjones is offline
Wrox Author
Points: 61, Level: 1
Points: 61, Level: 1 Points: 61, Level: 1 Points: 61, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bonjour requires a local network

Hey acsteester - I'm glad you're finding the book helpful, hopefully this post does the same.

Bonjour is a great networking technology, unfortunately it requires a local network to function. That network can be your typical wifi network or a Bluetooth personal area network (support added in iOS 3). It sounds like the latter may fit your particular use case.

Unfortunately, as of iOS 5, the policy changed such that apps must explicitly opt in to Bluetooth support. Bluetooth can still be used but Bluetooth control is not supported by the higher-level API (NSNetService and CFNetService) requiring you to drop down to the DNS-SD API to configure it. Tech Note 1753 contains more detail and links to sample code for the DNS-SD API.

If you are only targeting the iOS platform GameKit may be worth exploring. Chapter 12 covers GameKit and discusses it's suitability for use in situations other than just gaming.
Reply With Quote