如何使用相同的应用程序查找附近的iOS设备(GPS位置) [英] How to Find Nearby iOS Devices (GPS locations) using same app

查看:187
本文介绍了如何使用相同的应用程序查找附近的iOS设备(GPS位置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个应用程序,允许用户使用登录到同一应用程序的GPS坐标查找附近的其他用户位置。此外,它还可以跟踪设备的位置(登录到同一个应用程序)在车里搬家。

I want to create an app that allows a user to find the nearby other users location using GPS coordinates who are Logged in to the same app .Also it can be track the location of the devices(Logged in to the same app) which are moving in a car .

有人能给我一个如何实现这个目标的概述。是否有任何免费的API可用于完成此任务。

Can someone give me an overview of how I can accomplish this. is there any free API available to accomplish this task.

推荐答案

Danielbeard是正确的 - 您需要不断存储/更新位置在某个地方的服务器上。你的应用程序在后台运行时会有一些运行时间,但我不确定它是否足以运行你需要的网络流量。

Danielbeard is correct - you would need to be continually storing/updating locations on a server somewhere. Your app does get some running time when it is in the background, but I'm not sure it would be enough to run the web traffic that you'd need.

看看这篇文章:在后台运行应用程序发送频繁的http请求

并查看此处的多任务指南:多任务指南

And check out the multitasking guide here: Multitasking Guidelines

您还可以查看推送通知。希望这会有所帮助。

You can also look at Push Notifications. Hopefully this helps.

这篇关于如何使用相同的应用程序查找附近的iOS设备(GPS位置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆