Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geofence doesnt trigger #60

Closed
Lir10 opened this issue May 20, 2015 · 6 comments
Closed

geofence doesnt trigger #60

Lir10 opened this issue May 20, 2015 · 6 comments

Comments

@Lir10
Copy link

Lir10 commented May 20, 2015

Amazing lib!
I made some intent service that implements location listener , activity listener and geo fencing listener all works but geo fencing listener doesnt trigger .

is this issue known to happen ? or is it some bug ?

Thanks.

@Lir10
Copy link
Author

Lir10 commented May 20, 2015

after a few resets of my phone + reset the app i got trigger but still it looks like it's not stable and im not sure why :/

@mrmans0n
Copy link
Owner

You have to play around with the distances a bit, as the geofencing is a bit flakey. This is not a library issue, it's more of a play services issue. For me it has worked nice with around 150m of radius.

@Lir10
Copy link
Author

Lir10 commented May 20, 2015

Thanks for the answer...
Yeah you are right , google play services has some bugs ( like i said when i reboot the phone suddenly it's working) .

another little question :
Im also listening to location updates with the default settings. right now i can see that i got location 15 minutes ago and im not moving . how frequently i should see location updates with the default settings?

Thanks.

@Lir10
Copy link
Author

Lir10 commented May 20, 2015

strange looks like the location updates are not received at all with the default settings ( BEST_EFFORT).

im testing it already for 30 minutes and still no update.

@ppamorim
Copy link

Google geolocation sucks

@Lir10
Copy link
Author

Lir10 commented May 21, 2015

Update

After testing it for a day my conclusions are:

  1. to listen for background activity recognition / location updates you need to create a Service and not an intent service that will listen.
  2. geofencing does not work properly with that same service for some reason . I guess broadcast receiver would be a better thing for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants