They are probably fruit flies. Never had a problem till last year. Last year was atrocious. Haven't seen any, so far, this season. There are some beetles which go by a variety of names, such as fruit-souring beetle, and can be an issue, but in my experience you are more likely to see the beetles than the maggots.