Location: Order of enter and leave events unreliable
Posted: 26 Sep 2014 20:11
Hi
I'm using the Periodic Location Update trigger with several locations which do not overlap. In addition to the locations I need an "On Transit" state that is active when I'm outside of the known locations.
For example I want to switch between 3 states: Location A, On Transit and Location B.
When I move from location A to location B my phone sometimes ends up in the On Transit state because the event "enter location B" is triggered before the event "leave location A".
How could I ensure a clean transition betwen my states and a correct behavior of the On Transit state?
Michael
I'm using the Periodic Location Update trigger with several locations which do not overlap. In addition to the locations I need an "On Transit" state that is active when I'm outside of the known locations.
For example I want to switch between 3 states: Location A, On Transit and Location B.
When I move from location A to location B my phone sometimes ends up in the On Transit state because the event "enter location B" is triggered before the event "leave location A".
How could I ensure a clean transition betwen my states and a correct behavior of the On Transit state?
Michael