Questions tagged [android-geofence]

Represents a geographical region, also known as a geofence.

Geofences can be monitored by geofencer service. And when the user crosses the boundary of a geofence, an alert will be generated.

As currently implemented, in the Google Play Services API, geofences are circular, defined using coordinates (lat, long) and radius.

Documentation

563 questions
9
votes
2 answers

Geofence Notification not triggered when app in background

I have already gone through many SO posts , but nothing has worked yet for me. I am trying to trigger notification when device enters a geofence . But it does not trigger until app is opened. How would it be possible to trigger notification when app…
devcodes
  • 1,038
  • 19
  • 38
9
votes
2 answers

Monitoring Location Settings in a Library

I'm working on a library that can be used to monitor geofences on Android devices. I've noticed that the geofences I register with Google Play Location Services GeofencingApi class are lost after I turn Location Services off and back on in the…
Rob Szumlakowski
  • 947
  • 3
  • 8
  • 18
9
votes
1 answer

Do I need to request location updates when using Fused location Geofences?

I have successfully implemented location geofencing using the Android Developers documentation. The problem I am having is that the geofence events are not always reliable. Sometimes they trigger as soon as I'm at the location, sometimes they take a…
Nick
  • 748
  • 1
  • 5
  • 23
9
votes
5 answers

Geofencing API triggers enter event when already in zone

I've encountered this problem with the latest Android Geofence API. The usage is exact to the example usage. I set Geofence.GEOFENCE_TRANSITION_ENTER type geofence with 500m radius and expiration is Geofence.NEVER_EXPIRE. This works ok, but if I'm…
Niko
  • 8,093
  • 5
  • 49
  • 85
8
votes
1 answer

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…
phnmnn
  • 12,813
  • 11
  • 47
  • 64
7
votes
1 answer

GeoFence Device when app is in background

I have implemented the geoFence api and everything is working good. But there are some problems, I want more clarification regarding my confusions. Here are some of the confusions and problems: I want my user to get notified when he enters a…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
7
votes
2 answers

Android: Build Polygonal Shape Geofence

According to the API documentation, only Circular shape Geofences allowed: https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.Builder And it's looks for example:…
7
votes
7 answers

Couldn't connect to Google API client

I can't fetch last known location. I have enabled Geocoding API and Google Places API for Android in google console. I added api key to manifest file:
makaron
  • 77
  • 1
  • 1
  • 8
7
votes
2 answers

Android Geofencing sample app only works if another app is open using GPS

I am working with the Geofence API Sample application I've got it running and seems to work alright. I did make the modifications to it to use BroadcastReceiver instead of the IntentService. But I will only get the notifications if I have some other…
FoamyGuy
  • 46,603
  • 18
  • 125
  • 156
7
votes
3 answers

Geofence PendingIntent with extras

Here is the problem: Service that add geofences: public class GeofenceService extends Service implements GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener, LocationClient.OnAddGeofencesResultListener,…
reel
  • 189
  • 7
7
votes
3 answers

Not seeing Geofence Transitions in Google's tutorial on Geofencing

I am trying to test Geofence functionality using Google's example: Creating & Monitoring Geofences. I have uploaded the code here. Problem is that I never get a notification of entry or exit. I have Wifi, 4G and GPS on. I have tried to test in the…
user1406716
  • 9,565
  • 22
  • 96
  • 151
7
votes
1 answer

Android Geofencing - No coming intents?

I have a strange problem. I implemented geofencing using Google Services. (Implementation below) On my devices (Samsung Galaxy S and Moto X) they work perfect. On some other devices (HTC Incredible S, Galaxy Note), I receive no transition intents.…
7
votes
2 answers

Android Geofence only works with opened app

I'm doing a serious research on this topic for many days... I saw many topics here too... But unfortunately I couldn't find a solution.... I'm writing an app that uses the new Google API for Geofence... Well, I can handle "ins" and "outs" of a…
user717151
  • 99
  • 1
  • 1
  • 5
7
votes
2 answers

Does Android ProximityAlert or Geofence drain more battery when the phone is closer to a monitored location?

If I use an Android ProximityAlert with a given radius (say 100m), and my phone is regularly near (or at) that location, will the battery drain be greater than if I am rarely near that location? Is there a distance within which the battery drain…
Richard Russell
  • 1,105
  • 1
  • 10
  • 19
7
votes
6 answers

Android geofence with mock location provider

I have started developing on Android with last Location services feature : Geofences !! Is there any known problem with mock location provider ? Following example here (https://developer.android.com/training/location/geofencing.html) my intent…
ppatierno
  • 9,431
  • 1
  • 30
  • 45
1 2
3
37 38