The flaming onion was a 37 mm revolving-barrel anti-aircraft gun used by the German army during World War I, the name referring to both the gun, and especially the flares it fired. The American 'balloon-buster' ace, Frank Luke, was a prominent victim of this device, and it was mentioned in Eddie Rickenbacker's book Fighting the Flying Circus and in many "Biggles" stories. The term could also be applied to any sort of anti-aircraft fire that used a visible tracer, appearing in reports of combat from the Battle of Taranto, for instance.
The actual weapon was a Gatling type, smooth bore, short barreled automatic revolver called a 'lichtspucker' (light spitter) that was designed to fire flares at low velocity in rapid sequence across a battle area. This gun had five barrels and could launch a 37 mm artillery shell about five thousand feet (1500 m). To maximize the chance of a strike, all five rounds were discharged as rapidly as possible, giving the 'string of flaming onions' effect. Because most other rounds were fired slowly due to the nature of anti-aircraft artillery at the time, this gun's rapid rate of fire left many fliers thinking that the rounds were attached to a string and they feared being shredded by it.
Because all launchers were located well behind the lines, none were captured until the last days of the war on the Western Front. Because the weapon was not designed for anti-aircraft use, it did not have purpose-designed ammunition, but the flares would have been dangerous to fabric-covered aircraft. It appears that the design of specialist ammunition took place in tandem with design of higher velocity automatic anti-aircraft weapons; which may explain why the standard heavy automatic AA gun used by the Germans in World War II was of 37 mm caliber.
The name "flaming onion" was also used for a number of unrelated military topics. One of these was the mythical German device that exploded in such a way that it resembled a bomber being hit, although these also went by a variety of other names, including "scarecrows". It also included a napalm rocket used by the RAF during the Korean War, It is also the nick-name of a military insigne that depicts an old-fashioned grenade with a lit fuse. The device is in various armies; examples include The Canadian Grenadier Guards, The Princess Louise Fusiliers, the British Royal Engineers and Royal Artillery (displayed on their "collar dogs"), and the U.S. Army's ordnance department