Thanks for all the information. Why do you say not to use the spray foam on wire wheels?
I wonder if sewin is referring to tubeless wire rims. These require a carefully applied thick layer of special sealant to cover the inner side of spoke nuts. I guess the foam may react with it and would certainly leave a mess.
Personally I stay well away from the product which just hides punctures.