Ti.Android.Geofence icon indicating copy to clipboard operation
Ti.Android.Geofence copied to clipboard

delay before ENTERED is triggered

Open powysm opened this issue 6 years ago • 3 comments

I am seeing a delay of up to 2-3 minutes on entering a fence, before the entered event is triggered. I have added in my own Ti.Geolocation event listener and can see the location changing as i move about (into a new fence), but the entered fences aren't triggered until much later.

Is this related to battery consumption considerations or as intended for some other reason? Or potentially its just me seeing this and its device/connection related, although the geolocation events would indicate not.

Thanks (again) Mathew

powysm avatar May 29 '19 12:05 powysm

Hi @powysm , are you using Android 8+? It is important to know that on Android 8 and 9 the geofencing has a latency of 2-3 minutes, due to some new limitations.

deckameron avatar May 31 '19 14:05 deckameron

Yes 8.0.0. So this is purely OS related, therefore other similar Ti modules would have the same problem? Thanks for letting me know.

On Fri, 31 May 2019, 15:09 Douglas Alves, [email protected] wrote:

Hi @powysm https://github.com/powysm , are you using Android 8+? It is important to know that on Android 8 and 9 the geofencing has a latency of 2-3 minutes, due to some new limitations.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/deckameron/Ti.Android.Geofence/issues/9?email_source=notifications&email_token=AAVJEHPRJFOYZF2L46WVPR3PYEWSVA5CNFSM4HQMPOXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWVKH7Q#issuecomment-497722366, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVJEHOAPJSLA753ATINABTPYEWSVANCNFSM4HQMPOXA .

powysm avatar May 31 '19 14:05 powysm

@powysm I believe so! I am still trying to understand a few nuances of this limitations. I believe there is a way to make work faster that I need to find out.

deckameron avatar Jun 05 '19 16:06 deckameron