“找到我的朋友”风格的GPS(远程ping位置) [英] "Find my friends" style GPS (remotely ping for location)

查看:164
本文介绍了“找到我的朋友”风格的GPS(远程ping位置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在查找我的朋友ios应用程序中,朋友可以请求另一个人的位置。找到我的朋友在后台抓取位置,位置服务箭头立即出现。我主要关心的是GPS箭头指示器仅在用户被朋友抓住时才显示(不会保持打开状态)。



我的预期场景:Bob打开应用程序,并将他的朋友约翰约翰的位置。约翰的手机会瞬间显示GPS箭头,并在后台将他的位置发送回服务器,在那里我们可以将信息发送回Bob。

完成基本策略是什么这个?有没有办法在后台唤醒应用程序以获取位置?



我不想使用类似重大位置更改的内容,因为我只想抓取用户位置当一个特定的行为发生时(一个朋友给他们打电话)。



非常感谢!

解决方案即使我正在尝试使用相同的解决方案,但在加载R& DI后,发现无法请求设备打开应用程序并发送位置... Apple使用了自己的api在请求到达时获取朋友的位置。


In the "find my friends" ios app, a friend can ask for another person's location. Find my friends grabs the location in the background and the location services arrow appears momentarily. I am mainly concerned with the fact that the GPS arrow indicator is only shown when the user is pinged by a friend (does not remain on).

My intended scenario: Bob opens the app and pings his friend John for John's location. John's phone momentarily shows the GPS arrow and in the background, sends back his location to the server where we can send info back to Bob.

What is the basic strategy for accomplishing this? Is there some way to wake the app in the background to grab location?

I don't want to use something like significant location changes as I only want to grab user location when a specific action happens (a friend pings them).

Thanks so much!!

解决方案

Even I am trying for the same solution but after loads of R&D I found that there is no way you can request a device to open up the app and send the location... apple used their own api to get the location of friend when request arrives.

这篇关于“找到我的朋友”风格的GPS(远程ping位置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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