Do I need to request location updates when using surveying data with a smooth location?

I have successfully performed geolocation of location using the documentation of Android developers.

The problem I am facing is that geofence events are not always reliable. Sometimes they work as soon as I am in place, sometimes they take several minutes (even with a large radius), sometimes they do not work at all.

I also noticed that even if I turned on GPS, the application does not use a GPS sensor to get my location.

Is this because without the request for updates, the Fused Location provider is in “passive” mode and relies on requests from other applications? Do I need to fulfill location requests as well as geo services?

+7
android android-location gps android-geofence geofencing
source share
1 answer

Not sure if it answers your question completely, but I'm working on an application that implements geoprocessing as well as location requests, and these are my observations:

When the application is active and I receive location updates (the location is known), the geodesy behaves exactly - I get the intentions almost instantly.

When an application is inactive, I observe the same behavior - sometimes Intents are instantaneous, sometimes it takes some time, and sometimes it takes too much time. Of course, when there is some other application, i.e. Google Maps requesting location, intent again, almost instant. But when there is no need for a clear place, it usually takes some time. A common nightmare is people with Wi-Fi / mobile phone turned off and moving between buildings. Because there is no GPS inside, and they spend so little time outside that the phone usually does not wake up ...

So, I would say that this is really the expected behavior. (Otherwise, battery life would be terrible)

+3
source share

All Articles