iPhone GPS tracking through Gamekit/Bonjour
I'm familiar with CoreLocation, however, I need to design an application that shares the user's location across a shared network for business purposes. I wanted to know what would be the best way to transmit the user's Map Annotation to other devi开发者_高级运维ces on the shared network? Is GameKit/Bonjour the best place to start? Thank you for your help! ^_^
I'm afraid you did not provide enough information about your application needs. Anyway, you should read corresponding guides to have an idea about their limitations.
GameKit
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html%23//apple_ref/doc/uid/TP40008304-CH100-SW18
There are some limitations:
- GameKit is not available for Mac OS X (if you need it too)
- There's maximum number of peers (client-server game is limited to 16 players)
Bonjour
FAQ - http://developer.apple.com/networking/bonjour/faq.html
Basically - Bonjour is here to help you identify services on your network. In other words, Bonjour can help you to find other devices with your application on the network, but it doesn't implement data transfer for you. You have to implement it on your own.
精彩评论