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
4
votes
0 answers

How to receive a recurring "Dwell" event for Android Geofence API?

I'm having a play with this example project: https://github.com/googlesamples/android-play-location/tree/master/Geofencing So from this sample, ENTER fires when the user was last outside of a geofence but is now within, EXIT fires in the same way…
user1819747
4
votes
1 answer

Android 8 Geofences on killed app

With the transition to android 8 I encountered an issue that geofences in app are not working anymore when app is killed. I implemented geofences as per android developers guide, so no reason to show any code snipplets. With some small…
4
votes
1 answer

Geofence events not always called

This is how I add my geofences: public void setGeofenceRequest(Location location) { if (geofences == null) { geofences = new ArrayList(); } geofences.add(new Geofence.Builder() .setRequestId("3") …
rosu alin
  • 5,674
  • 11
  • 69
  • 150
4
votes
3 answers

Android geofence BroadcastReceiver

I have implemented geofences using the GoogleApiClient -> when triggered, a Service connects to the GoogleApiClient and adds several Geofences. Before I had another IntentService registered as "callback" for geofence events. This worked more or…
Thomas S.E.
  • 1,528
  • 16
  • 28
4
votes
0 answers

Firebase GeoFire vs Geofence API

Am looking at adding geofencing type capabilities to an app. Right now I'm already using Firebase and Geofire (https://github.com/firebase/geofire-java) and was wondering what, if anything does Google's Geofence API…
John O'Reilly
  • 10,000
  • 4
  • 41
  • 63
4
votes
2 answers

How to erase all geofences fed into the google Geofence API?

I added geofences to the Google Geofence API as in that example. from time to time I would like to erase those geofences (either one by one or all togehter), independent of their expiration time etc. mGeofenceList.add(new Geofence.Builder() //…
4
votes
1 answer

Android Geofences (Location Services) - How to trigger in-app events

I've been using the Google Location Services API with Geofences. I can successfully catch Geofence transitions and I receive notifications when I enter and exit Geofences. However, I do not know how to make a Geofence transition make GUI and Data…
Adrian Hansson
  • 107
  • 1
  • 11
4
votes
1 answer

iOS geofences dwell event

There is a dwell event for Android devices to detect user had stopped moving and standing in region . But there is no event for iOS. Are there any idea how to catch this event ?
javagc
  • 846
  • 1
  • 17
  • 37
4
votes
3 answers

Android: What is the minimum and maximum radius for geofence

I am working on an Android app which makes use of geofence. I want user to decide the radius of geofence. But I want to know what is the minimum and maximum radius for the geofence so that app will work fine.
Akshay
  • 833
  • 2
  • 16
  • 34
4
votes
3 answers

Geofencing with only GPS does not work in android

I want to use Geofencing location API in my application to set certain Point of Interest. I have used this demo provided by google. I am able to run this demo when WIFI and location services both are on. But this doesn't seem to work when only GPS…
Name is Nilay
  • 2,743
  • 4
  • 35
  • 77
4
votes
1 answer

Android Update Geofences

What's the best way to update geofences in Android? Is it to first remove the old set of Geofences and then add the newly updated list like this: LocationServices.GeofencingApi.removeGeofences( mGoogleApiClient, …
Tom Hammond
  • 5,842
  • 12
  • 52
  • 95
4
votes
1 answer

How to start a notification in IntentService

I'm try to send a notification when a user enters or exits a specific geofence. I already can log when a user enters or exits the geofence. But no notification is showed up when this happened. Is there anything i'm missing? I implemented a theme in…
Theo Jansen
  • 81
  • 1
  • 4
  • 11
4
votes
3 answers

Draw a Circle GeoFence with Preview in Android

First of all my question is a bit different from other questions about GeoFencing in gmap in Android. When the user start to define a circle as a GeoFence area I want to show a fixed circle in the center of the screen. In this stage the user should…
4
votes
1 answer

Why do we need to store Goefence data in android app?

My question is self descriptive,I've read a lot about how to use Geofence Api in android App. I follow so many tutorials and even links from SO.I'm developing an application which uses Geofencing.But still there's one question that i'm not clear…
Pankaj
  • 2,115
  • 2
  • 19
  • 39
4
votes
2 answers

setExpirationDuration(NEVER_EXPIRE) and setTransitionTypes(GEOFENCE_TRANSITION_ENTER) giving error

In my method for building a geofence, I am getting an error on ExpirationDuration(NEVER_EXPIRE) and setTransitionTypes(GEOFENCE_TRANSITION_ENTER) stating that they can't be resolved to a variable. Why is this happening? My method: private void…
user3391426
  • 433
  • 1
  • 5
  • 17