如何每5分钟将GPS数据发送到服务器? [英] How to send GPS data to server every 5 minutes?

查看:336
本文介绍了如何每5分钟将GPS数据发送到服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算编写WP7应用程序,该应用程序需要每5分钟将GPS位置发送到服务器电话.即使应用未运行,也必须将数据发送到服务器.一种方法是使用背景代理(我使用的是7.5 Mango),但在这种情况下,应用程序仅每30分钟发送一次数据,在我的情况下是不可接受的.
还有其他解决方案吗?
感谢您的建议.

I am planning to write WP7 app, which needs to send to server phones GPS position every 5 minutes. Data must be sent to server even if app is not running. One way to do that is to use Background agents (I am using 7.5 Mango), but in that case app will send data only every 30 minutes, which is not acceptable in my case.
Is there any other solution?
Thanks in advice.

推荐答案

否,这不是Mango上WP7应用程序支持的用例.另外,重要的是要提到您将获得的后台代理上的> GeoCoordinateWatcher 是大约15分钟内的缓存地理位置,而不是实时地理位置.

No, this is not a supported usecase for WP7 apps on Mango. Also, it's important to mention that the location you'll get for GeoCoordinateWatcher on a background agent is a cached geolocation from approximately the last 15 minutes and not the real-time geolocation.

如果您不介意我问的话,您到底想建立什么?这听起来似乎与间谍软件接近.即使它是无害的并且有良好的用途,但我还是要小心地朝与远程服务器不断共享GeoLoc的任何方向走.

What exactly are you trying to build if you don't mind me asking? This sounds oddly close to spyware. Even if it's innocuous and meant for a good purpose, I'd be careful walking in any direction that constantly shares GeoLoc with a remote server.

这篇关于如何每5分钟将GPS数据发送到服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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