android / location-samples

Multiple samples showing the best practices in location APIs on Android.
Apache License 2.0
2.71k stars 2.78k forks source link

Geofencing location transitions not triggered #101

Open galadril opened 6 years ago

galadril commented 6 years ago

I'm using this example: https://github.com/googlesamples/android-play-location/tree/master/Geofencing

But no transitions are triggered when the app is not on the foreground. I thought this should work on background also?

The Code https://github.com/domoticz/domoticz-android/blob/alpha-development/app/src/main/java/nl/hnogames/domoticz/Utils/GeoUtils.java

and then for handling the transitions: https://github.com/domoticz/domoticz-android/blob/alpha-development/app/src/main/java/nl/hnogames/domoticz/Service/GeofenceTransitionsIntentService.java

andrea-liu87 commented 6 years ago

I have similar issue as well. Have you got any progress in this issue? https://github.com/snufflesrea/geofencing-test/issues/1