将位置坐标发送到另一部 iPhone
我正在尝试编写一个与另一个应用程序通信的应用程序。我只想在地图上看到另一个人。这可能吗?如果我能实时获取坐标,我就可以处理所有地图细节。任何关于与其他 iPhone 通信的建议都会很棒。我不想使用 Apple 推送通知服务。
I am trying to write an app that communicates with another app. I just want to see the other person on my map. Is this possible ? I can handle all the map details if I can get the coordinates in real time. Any advice on communicating with other iPhones would be great. I donot want to use Apple Push Notification service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
您可以通过运行一些 Web 服务来实现此目的,该服务允许 iphone 获取并向其发送信息。环顾这个网站,如何通过 iPhone 向服务发出请求的问题已经被问过很多次了。具体看 NSURLRequest/NSURLMutableRequest 文档 ...希望这有帮助
You can achieve this by having some web service running that allows the iphone to get and send information to it. Look around this site, the question of how to make requests from a service through the iphone has been asked many many times. Specifically look at NSURLRequest/NSURLMutableRequest documentation ...hope this helps
我建议你研究一下 iPhone 的 Bonjour 服务。如果您希望应用程序的一个实例与另一部 iPhone 上同一应用程序的另一个实例进行通信,那么这可能就是您想要的,除非您想使用游戏中心。
借助 bonjour 服务,您可以在应用程序运行时在手机上宣传某项服务,并让另一部 iPhone 连接到该服务并向其发送一些数据。
I would suggest you look into Bonjour services for the iphone. If you want one instance of your app to communicate with another instance of the same app on another iphone, then this is probably what you want, unless you want to use gamecenter.
With bonjour services you can advertise a service on the phone while the app is running and have the other iphone connect to that service and send it some data.