Cut the bacon into relatively thin slices. Finely chop the onion and garlic, peel and finely dice the apple.
Fry the bacon in a small/medium skillet/frying pan over a medium-high heat, stirring regularly, until the fat renders ad the bacon is starting to brown, around 5-10 minutes. Remove the bacon and drain then drain off all but around 1 tbsp/15ml of the bacon fat. Save the drained fat in case you need to add a little more.
Add the onion to the skillet/frying pan and cook a minute until starting to soften, then add the garlic and apple. Cook, stirring regularly until the onions have softened and gone translucent and the apple is well softened. It will likely take around 5 minutes. Reduce the heat if needed and/or add a little more bacon fat if the onion seems to be browning too much.
Add the cinnamon, if using, vinegar, water, brandy, sugar and molasses and stir in well. Once it comes to a boil, reduce to a simmer and allow to cook for around 15-20 minutes, stirring occasionally, until it is nicely sticky and the liquid is nothing more than a slight bit of syrup.
Remove the bacon-apple mixture from the skillet/pan, and either transfer to a jar or pulse a few times in the food processor to break up a little into a slightly finer texture, as you prefer. Allow to cool before storing in the fridge.