用户位置在需要时更新 [英] User location updates when required

查看:56
本文介绍了用户位置在需要时更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我工作的公司要求我开发一个可以跟踪我们的Windows 8手机应用程序设备。我们目前有超过1000部手机正在使用我们的员工,我们希望获得有关设备位置的最新信息。我们正在使用Airwatch
平台,但我们希望在不久的将来摆脱这一点。


在阅读了有关位置跟踪和后台任务的一些信息后,我只是想知道如果确实我们每隔30分钟才能从设备接收数据?


感谢任何帮助。


谢谢,


Becky。


已解决:


您好我现在通过使用PhoneApplicationService.RunningInBackground解决了这个问题,以便应用程序将在后台持续运行和更新(尽管我们仍在努力解决此问题的限制)。当PositionChanged
事件(Geolocator类)被触发时,我通过HttpWebRequest将信息发送到我们的端点。这允许我们在每次用户位置发生变化时从手机发送信息!

解决方案


AFAIK,没有任何限制。可能是周期性的任务。


检查这些样本/文章 -


http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662935( v = vs.105).aspx


http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v = vs.105).aspx


Hi,

The company that I work for have asked me to develop a windows 8 phone application that can track our devices. We currently have over 1000 phones in use by our employees and we would like up-to-date information on the devices location. We are using the Airwatch platform but we would like to move away from this in the near future.

After reading some information about location tracking and background tasks, I am just wondering if it is true that we can only receive data from the devices every 30 minutes?

Any help is appreciated.

Thank you,

Becky.

RESOLVED:

Hi, I have now resolved this issue by using PhoneApplicationService.RunningInBackground so that the application will continuously run and update in the background (although there are limitations with this that we are still trying to resolve). When the PositionChanged event (Geolocator class) is fired I send the information to our endpoint via the HttpWebRequest. This allows us to send in the information from the phone every time the users location has changed!

解决方案

Hi,

AFAIK, there is no kind of restriction. Probably it is with periodic task.

Check these samples/Articles -

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662935(v=vs.105).aspx

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx


这篇关于用户位置在需要时更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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