可在Android地理围栏系统(谷歌播放服务)触发事件时,手机睡觉 [英] Can the android geofencing system (Google Play Services) trigger events when the phone is sleeping

查看:378
本文介绍了可在Android地理围栏系统(谷歌播放服务)触发事件时,手机睡觉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如果谷歌播放服务区域范围设定和定位系统,可实际用于后台位置的监控。

I'm trying to find out if the Google Play Services geofencing and location system can be practically used for background location monitoring.

这是例子的情况是,我的手机在我的口袋里,并输入一个地理围栏区域 - 将在我的应用程序的事件处理程序被触发,所以我可以用事件作为相应的处理,或者是​​只打算使用的系统而手机是清醒的,并在前台应用程序?

An example scenario is that I have the phone in my pocket, and enter a geofenced area - will the event handler in my app be triggered so I can deal with the event as appropriate, or is the system only intended to be used whilst the phone is awake and the app in the foreground?

我一直在敲打走在例如code,而且至今没有设法使它以这种方式工作 - 或者找到的文档完全解决这一点 - 它似乎是太新的人要使用它了。

I've been banging away at the example code, and so far haven't managed to make it work in this way - or find docs fully addressing this - it seems to be too new for people to be using it much.

显然,手机不使用GPS不断在睡觉,或者电池将很快耗尽,但我想知道,如果广大网络位置进行监控和用于此目的(或发现,如果该设备是在短距离地理栅栏的,要知道它的价值轮询GPS定期找到,如果已经越过。)

Obviously the phone doesn't use GPS continually whilst sleeping, or the battery would run down quickly, but I'm wondering if the broad network location is monitored and used for this purpose (or to discover if the device is within short distance of a geofence, to know that it's worth polling the GPS periodically to find if it has been crossed.)

推荐答案

这个答案(由Commonsware)到另一个问题似乎回答这个问题的主旨,但更多的测试需要回答一些关于更详细的方面后台位置的可用性,准确性和地理围栏可靠性。

This answer (by Commonsware) to another question seems to answer the general thrust of the question, though more testing is required to answer some of the more detailed aspects about background location availability, accuracy and geofence reliability.

Commonsware

这篇关于可在Android地理围栏系统(谷歌播放服务)触发事件时,手机睡觉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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