pepper spray attracts bears

Right, in regard to the residue. It makes sense that it does. To a bear it's just another smell and they are curious creatures when it comes to smells.

Appropriate use for pepper spray is discharging it as a dense cloud, in the face of a charging bear. Other uses are not effective.