I have a grafted cooking apple tree. The name escapes me, but is supposed to be the French equivalent to Granny Smith. It flowers well and bears OK, but it drops fruit as they ripen. I also have brown spots which go into flesh. Plus many have brown rot in centre. See Photos.
Certified GKH Gardening Expert
This is likely Apple Maggots.
This link has more information.