location-samples icon indicating copy to clipboard operation
location-samples copied to clipboard

Geofence isn't triggered until another app uses GPS

Open sohail77 opened this issue 8 years ago • 15 comments

I'm trying to implement geofencing but the problem is in the sample geofences are triggered i.e the notification is displayed(while the app is in the background) only when i use another app such as Google Maps that uses gps. Is there a way i could make the app check for location updates and trigger geofences while the app is close or in the background

sohail77 avatar Jan 22 '18 09:01 sohail77

@sohail77 I am running into the same issue as of lately - did you manage to find what was causing this behaviour, or maybe a way to make it work?

itap avatar May 28 '18 11:05 itap

Same issue for me...

ben-j69 avatar Jan 23 '19 16:01 ben-j69

Anyone had luck with this? I'm stuck on this

sreekanth-krishnan avatar Apr 18 '19 11:04 sreekanth-krishnan

Any updates on this guys?

murat0 avatar Apr 27 '20 16:04 murat0

Same issue for me! I'd also be looking for a solution.

ihrigb avatar Jun 02 '20 11:06 ihrigb

Me too! Using the emulator I can only trigger the geofence notifications when i open the Google maps app!

DomClaxton avatar Feb 07 '21 08:02 DomClaxton

Experiencing the same issue - has a solution been found?

Jake-Russell avatar May 10 '21 11:05 Jake-Russell

I haven’t found a solution exactly, except to say I experience the issue in the emulator but when tested on a real device it did seem to work. It was very frustrating because I spent quite a few hours trying to get it triggering in the emulator and then on a hunch I tried it on a real device and it worked - without the need to open another GPS app. So the GPS trick is the thing to do if you want to test in the emulator. That was my experience.

DomClaxton avatar May 10 '21 12:05 DomClaxton

Unfortunately the issue persists even on a real device for me :( I need to have Google Maps (or my app) open for the geofence notifications to be triggered

Jake-Russell avatar May 11 '21 10:05 Jake-Russell

I haven’t found a solution exactly, except to say I experience the issue in the emulator but when tested on a real device it did seem to work. It was very frustrating because I spent quite a few hours trying to get it triggering in the emulator and then on a hunch I tried it on a real device and it worked - without the need to open another GPS app. So the GPS trick is the thing to do if you want to test in the emulator. That was my experience.

Unfortunately, It's not working in real device as well. I have to open google maps, only then the geofence notifications are triggered.

sreenath2406 avatar Jul 06 '21 03:07 sreenath2406

I'm having the same issue.. have anyone found a solution for this?

GambitDev avatar Aug 22 '21 15:08 GambitDev

Same problem here, please can this thread receive some attention?

Clopma avatar Sep 08 '21 22:09 Clopma

Help :)

arosca avatar Nov 16 '21 13:11 arosca

Same problem :(

axeloehrli avatar Feb 22 '22 13:02 axeloehrli

July 2022 and having exactly this issue. Sad.

coinzdude avatar Jul 23 '22 22:07 coinzdude