How to pause location sensor to checking location

hi, in my app when i click on check location button it is checking location and giving result as in lcation or not. when not at location i am showing a lottie file and it is keep on showing how to show it for only once.
blocks(2)



Hi dear,

Welcome to the Kodular community!

If I understood correctly, the issue comes from the fact that you placed code to show the Lottie inside the OnLocationChanged event, and since the location keeps changing, it keeps being shown repeatedly, correct?

yes, thats the problem . i tried to disable the lottie arrangement but again when location changes it appearing again

The simplest thing that comes to mind is to create a variable atLocation that keeps track of the last state of the coordinates, so if the previous state of atLocation is false, the code inside the if won’t be executed.