Responsible for this myth is Pliny the Elder, a Roman philosopher, who claimed in the encyclopedic Naturalis Historia that hedgehogs stock up apples for winter.
It is not recommended to feed apples to hedgehogs. If, however, there is a will or necessity, apples should be rid of seeds, peeled, and cut into small pieces.