Im supposed to make a notification whereby it shows up whenever i walk for 10 meters but whenever it reaches above 10m, the notification keeps looping until i fully stop walking. Is there a way to notify the user only one time?
Im supposed to make a notification whereby it shows up whenever i walk for 10 meters but whenever it reaches above 10m, the notification keeps looping until i fully stop walking. Is there a way to notify the user only one time?
use a global variable to remember if the dialog has pop up or not.