Butter and flour a round cake tin about 26 cm. Gently melt the butter in a bain-marie or in the microwave.
Mix the flour, the cinnamon, the sugar and the baking powder (and a pinch of salt if the butter is unsalted). Add the eggs one by one then the melted butter.
In a pan, without any fat, lightly toast the flaked almonds. Be careful: stir and watch closely because they burn very quickly.
Peel the apples, cut them into quarters and remove the core and seeds. Cut the apple quarters into small cubes about 1 cm. Soak them in the rum.
Add the apples to the batter along with the toasted almonds and 3 tablespoons of the soaking “juice”.
Pour the mixture into the tin and bake for about 30 minutes. Check doneness by piercing the centre of the cake with a blade: if it comes out dry, it is done.