I have been out for a walk already and I am very happy to report that the getting of candy is very automatic. You just choose your buddy and forget about it. after you walk the 3 km it simply adds it to your candy stash and starts on another with no interaction from the trainer.
I was worried that you would have to claim it, but that is not the case.