GeoFence device when the application is in the background

I have implemented geoFence api and everything works well. But there are some problems, I want to get more clarification regarding my confusions.

Here are some of the confusion and problems:

  • I want my user to be notified when he enters the geophoreus zone. I implemented GeofenceTransitionsIntentService as recommended, but does not trigger the transition when the application is in the background. What should I do?

  • GeoFence Expire time: it’s pretty obvious that if we enter Never , it will not expire, but I am confused in time. For example, if I set it to 10 minutes, what does it do? After the set time has elapsed since its creation, will the geofenon expire or expire when the user arrives at this place, and then the timer starts? How can we get the geofencing validity when the user gets there.

  • How does Google track us? How does geofence work? We are not sending our location, but are now tracking? Does tracking begin when we add geofence and then notify us of arrival at this place?

Please tell me and discuss these confusions, especially my confusion in this, while working while the application is closed or destroyed.

+6
source share
1 answer

A 1.) According to this Google I / O Talk When you use PendingIntents, the Location API should wake up your application, even if it is running in the background, although, in my experience, Geofencing events are pretty unreliable, but it could be due to the poor GPS receiver in the device that I used for testing.

+3
source

All Articles