android / location-samples

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

TRIGGER DWELL NOT WORKING #188

Open houdayec opened 5 years ago

houdayec commented 5 years ago

Hi everyone !

I've been using this sample of code after getting some errors on my personal project.

The geofencing sample is working well when using the defaults transitions triggers (ENTER - EXIT).

I need to use DWELL transition as I would like to notify the user after he stayed more than a specific amount of time in the geofence area.

However, after setting up my initialTrigger as DWELL and trying to get the callback in the service, it is not working even though I set a small loitering delay (10s).

Anyone got the same issue using this project ?

lkjh654 commented 3 years ago

Hi,

are there any plans to fix the issue? I experience the very same issue: GEOFENCE_TRANSITION_DWELL not being delivered. However only some devices seem to be affected i.e. Samsung Galaxy S9 (Android 10). On other devices the API just doesn't work reliably but on some i.e. Pixel devices it just works.

thanks!