Take a look at samsung-galaxy-a12/faq/faq/flash-notification-samsung/
There may be apps in the Playstore that bring this option too @Rightmiau
Daily Driver > Samsung Galaxy s²² Ultra 256Gb in Phantom Black.The advice I offer is my own and does not represent Samsung’s position. I'm here to help. " This is the way. "