05-09-2021 03:47
05-09-2021 03:47
Hi,
So I've done some searching around the forum but cannot find anything related. I'm looking to add a message/animation when the user completes their daily goal however I am having difficulty with how to achieve the "if" part due to variables obviously resetting on reload of the clock. Are there any examples or tips anyone can give?
Thanks!
Best Answer05-09-2021 13:30
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
05-09-2021 13:30
Have you considered onreachgoal?
Best Answer05-11-2021 10:49
05-11-2021 10:49
Thanks, this looks like the sort of thing I was looking for but, for the life of me, I couldn't get it to enter either in the simulator or on my Fitbit when testing live results. I was testing with a console log and outputting goal (e.g. is the goal steps, yes it was) and then what the goal was and what the current was, right before the onreachgoal and then I was reaching this but never getting the console log/never entering the if statement.
Best Answer