This appears to be stink bug damage.
Stink bugs damage plants when they insert their beak-like mouthparts into the fruits, buds or blossoms and suck out the sap. If the pests feed on the apples, the fruit might form dimples, sunken areas, blemishes, scars or pitting. Feeding activity sometimes causes pithy or mealy sections to develop in the flesh.
Here is a helpful publication:
Hope this helps!