I use Vanilla spray on mine. I have some from Bath and Body Works that I use. Before that I sprayed some that is meant for sweeper bags around the windows and doors of the coop.
I have not lost the first bird to the gnats, and I have talked to many locals who have. Google it and you will see.