Fruit flies are a real headache, my mom lost almost her entire harvest a few years ago and since then she's tried several things that actually work. What's worked best for her is using yellow sticky traps hung on the branches before flowering even starts, combined with paper bags or fine mesh around the developing fruit to keep the fly from laying eggs directly on them.
It's also worth collecting any fallen fruit every single day, because that's where the larva completes its cycle - if you get the fruit off the ground fast, you nip the problem in the bud. Some people use homemade traps with vinegar and a bit of dish soap in cut bottles, which catch the adult flies before they reproduce, and honestly that method is cheap and doesn't require any harsh chemicals. Start now while there's still time before it really starts showing up in your area.