Spray and being in a group of four or more seems to be a popular precaution
Looking at Parks Canada's
bulletin, they have an added piece of advice that I tend to forget about:
The maximum distance between two individuals must not exceed 3 metres and should be less when sight or hearing is reduced by the physical surroundings.Having a group a people doesn't do much good if you end up breaking up into pairs or smaller groups while hiking.
Also, regarding the bear spray recommendation, to be fair it is illegal to have firearms in the national parks so spray the only option that could be recommended to the public.