I have a Galaxy S21. On Auto Optimisation it says it will not send any notifications and shut down some Apps until I unlock it. I need to know if my alarm will still go off?
If its something that worries you just turn off auto optimisation. Reboot the phone once a week yourself and unlock the phone after. I'm not sure if the alarm will go off if your phone needs unlocking once its restarted.