Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android O Geofence Trigger Delay

I have a navigation app that used geofences(Creating and Monitoring Geofences).

Google says (Background Location Limits):

The average responsiveness for a geofencing event is every couple of minutes or so.

On previous Android versions was no delay. But on Android O, the app shows a delay of ~4-5 minutes after leaving a geofence(approximately 50% of cases). Tested on ODP2

Has anybody faced a similar problem?

like image 647
phnmnn Avatar asked Jun 13 '17 12:06

phnmnn


People also ask

How accurate is Google geofencing?

App developers can use native Android and iOS location detection to power their location-based experiences and engagement. However, native geofencing technology can only deliver accuracy of around 100-200 meters. For context, that's about the length of a soccer field.

What is geofence trigger?

Most smart devices allow you to set them up to function so that they trigger automatically via a wonky-sounding technology called geofencing. That simply means enabling your smart devices to automatically activate when you leave home or return—an event that is (usually) determined by the location of your smartphone.

What is the recommended radius for geofence?

For best results, the minimum radius of the geofence should be set between 100 - 150 meters.

How do I test geofencing on my Android?

Test entering a geofence by creating a geofence region that includes your current physical location, so you're already inside the geofence and the “geofence entered” event is triggered immediately. This works great for the entered event but doesn't work for all geofencing scenarios.


1 Answers

Google added new paragraph to Create and monitor geofences doc

Alerts can be late. The geofence service doesn't continuously query for location, so expect some latency when receiving alerts. Usually the latency is less than 2 minutes, even less when the device has been moving. If Background Location Limits are in effect, the latency is about 2-3 minutes on average. If the device has been stationary for a significant period of time, the latency may increase (up to 6 minutes).

like image 87
phnmnn Avatar answered Nov 15 '22 02:11

phnmnn