The bait will attract gnats, luring them inside the apple and trapping them inside. The adults, stuck in that liquid glue, ...