iPhone 好友位置应用

发布于 2024-09-05 22:22:32 字数 153 浏览 2 评论 0原文

如果我们要开发一个记录好友位置的应用程序,SDK提供什么样的API?

更新:

CoreLocation 获取运行应用程序时的设备位置。但是,如果您有朋友的电话号码,如何获取他们的位置数据。

有谁知道使用 iphone sdk 获取朋友的位置数据

What kind of api does SDK provide if we are to develop an app which keeps tracks of friends location?

Update:

CoreLocation gets the device location with the app running. But how to get the friends location data if you have their phone number.

Does anyone have idea to get the location data of friends using iphone sdk

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青衫负雪 2024-09-12 22:22:32

我猜你的意思是像 Core Location 框架之类的东西?这仍然只能在应用程序运行时跟踪设备位置。您必须将朋友的位置数据传递到服务器并从那里获取它,以便能够在任何设备上跟踪他们。

http://developer.apple.com/iphone/库/文档/CoreLocation/Reference/CoreLocation_Framework/index.html

I'm guessing you mean something like Core Location framework? This still would only be able to track the device location with the app running. You would have to pass your friends location data to a server and fetch it from there to be able to track them on any device.

http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CoreLocation_Framework/index.html

筱果果 2024-09-12 22:22:32

如果 Apple 让任何旧应用程序与另一部 iPhone 进行通信以确定该 iPhone 的位置,我会感到惊讶。您可能需要维护一个不时与您的应用程序同步的位置数据库。使用该应用程序的任何人都可以访问其朋友的位置。

I would be surprised if Apple let any old app communicate with another iPhone to determine that iPhone's location. You'll probably have to maintain a database of locations that syncs with your app from time to time. Anyone using that app will then be able to access their friends' locations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文