Answer
Medically, ammonia inhalants (smelling salts) containing ammonium carbonate are used to revive people from fainting by stimulating breathing reflexes. Historically, they've been used to treat shock and loss of consciousness. However, this use has declined with better understanding of the risks associated with ammonia exposure.