追踪朋友的位置
我想让用户能够通过我的应用程序之一跟踪他们的朋友。该应用程序适用于音乐节。
我一直在想办法做到这一点:
- 让用户为设备设置一个昵称(与UDID关联),让用户通过昵称将彼此添加到“好友列表”中。当应用程序运行时,用户的位置将通过推送消息发送。这可能有点难以集成 - 而且我有点讨厌使用推送通知。
- 为每个用户设置帐户,然后将用户的最近位置存储在数据库中并读取它们。同样,用户将通过昵称相互添加。这将是一个非常简单的解决方案,但我不确定存储用户的位置是否合法(也许我可以请求他们的许可,并且默认情况下不启用此选项?)
- 我见过一个应用程序这样做“朋友”跟踪”并通过让用户登录 Facebook 来完成此操作。我没有尝试过这个功能,也不知道 Facebook 是如何做到这一点的。也许你知道?
对这些解决方案有什么想法或者有其他方法可以实现这一目标吗?
I would like to make it possible for the user to track their friends through one of my applications. The application is for a music festival.
I have been thinking of ways to do this:
- Let the user set a nickname for the device (associated with the UDID) and let users add each other to a "friend list" by their nickname. When the application is running the location of the users would be sent around through push messages. This might be a bit hard to integrate - and I kind of hate working with push notifications.
- Set up accounts for each user then store the user's most recent location in a database and read them. Again, users will add each other by nicknames. This would be a really easy solution but I am not sure if it is legal to store the location of the user (maybe I could ask them for permission and not have this option enabled by default?)
- I have seen an application doing this "friend tracking" and doing it by having the user log into Facebook. I did not try this feature and I do not know how they do it with Facebook. Maybe you do?
Any thoughts on these solutions or are there any other ways to accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你见过谷歌纬度吗?
http://nexos.ravex.net.au/apps/xnetViewer/ ?q=google+latitude
有 api
http://code.google.com/apis/latitude/
Have you seen google latitude?
http://nexos.ravex.net.au/apps/xnetViewer/?q=google+latitude
Has api
http://code.google.com/apis/latitude/