Squirting a dog with ammonia is extremely bad advice.
You will permanently harm the dog and risk injuring yourself or others on the ride. It is the absolute wrong way to deal with dogs.
The correct way to deal with dogs is OC type pepper spray.
Sabre Red Pepper Gel is organic, does no permanent harm to the dog or the environment, wears off completely in four hours and stops the dog cold. I have used it several times and dogs no longer bother cyclists - they won't even come near us. It was recommended to me by animal control officers.
https://www.sabrered.com/pepper-spra...p-belt-holster
$12.99 for prime members.
-Tim-