https://www.grainews.ca/2015/05/15/homemade-recipes-to-help-control-apple-maggots-and-ants/
has some recipes. The idea is to do the critter in before it mates.
Maggots apparently
feed for a few days after emergence
***
The commercial maggot traps are round, and red. Do they have to be round? Would anything red do? Spray fenceposts red, then spray with tanglefoot. Do green apples get less maggot?
Some kits come with pheromones. Comparison of effectiveness with and without the pheromone?
Anyone make their own tanglefoot? I think I would start with a mix of molasses and glycerine. molassses for sticky, glycerine to reduce evaporation.
***
Put down tarps under the tree in early spring. Tarps don't have to be solid, just fine
enough mesh to prevent the fly from getting off the ground. Row cover might be enough.
Same idea in the fall may work to keep the larva from entering the soil.
***
Put heavier tarps -- 5 of them, with 1 corner 4 feet up the tree and the other 3 staked down. Apples that fall off the tree hit the tarp and roll to the edge. The tarp keeps the larva from burrowing in. You also will get a lot less bruising on your windfall.
***
Keep a hungry pig in your orchard. Fallen apples don't last long.