Keeping a process always running even when M1 Mac is sleeping

I would like to keep a process "always on" as some specific iOS apps (such as navigation or music apps) are able to, even when the Mac is put to sleep. Since it's an M1 Mac it seems to me that the hardware itself should easily enable it, but I can't find any way to do this ?

Thank you


Solution 1:

It is not possible to run user selected processes or applications while macOS is asleep.

Some specific processes can be run during sleep, through Power Nap, but these are limited to Apple's applications.