I use carburetor cleaner on occasion. Same as non clorinated brake cleaner.
Keep in mind that many, if not all of these pressurized solvents are very flammable, and can pose a very real and significant health risk through skin contact and inhalation. Whether you decide to use this horrible stuff is up to you of course, but, if you do, please remember to read and follow label instructions. Wear disposable gloves. Protect your eyes. Keep these products out of the reach of your children and grandchildren.
From an armorer's perspective, these products strip the surfaces they contact of all protective coatings and lubricant. Because of their inherent characteristics, this will include surfaces that cannot be reached without complete disassembly. As a result, oxidation of the stripped surfaces and components may occur, especially if pressurized sprays are applied directly to the parts assemblies and components.
In addition, these types of volatile solvents are not really necessary for typical cleaning scenarios that most of us encounter. Deeper cleaning, if necessary, may require seeking a professional gunsmith's help, or the judicious use of an ultrasonic machine used with a suitable additive specifically designed for firearms.
As others have said, there are many plant and oil based products that are safer, both for you and your firearms. Other options include products sold by Iosso, Blue Wonder, M-Pro 7, and many others. They are, for the most part biodegradable, non-flammable, and reduce dangers brought to the work table by aerosol solvents.
Unless you are shooting and cleaning large numbers of firearms, the cost of these devices is prohibitive in my opinion. They do a great job though, and don't leave the gun stripped of it's protective layer of lubricant which is left behind by the proper solutions used in the machine. Ultrasonic cleaning certainly doesn't preclude normal, regular maintenance procedures, but makes it much easier on a large scale.
While some large police agencies and military units use this option, it would seem impractical for most of us who shoot only occasionally, or enjoy the sport as a hobby. My department used slave laborers called "factory trained armorers" for this tedious hand work.
A little research online will give you a good idea if it's affordable and feasible for you.