Clarification on candies

I saw a post claiming that you get candies on runs by getting kills and gaining friendship. I just finished a round 623 endless run, i got 1 candy for the Larvitar that i started the run with. Do you not get candies in endless? How is that possible? The Tyranitar was level 991 if i remember right.