Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Do something when goals reached

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 Answer
0 Votes
2 REPLIES 2

Have you considered onreachgoal?

Peter McLennan
Gondwana Software
Best Answer
0 Votes

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
0 Votes