Opting-out from PowerNap wake-up

On some M1 MacBooks Air we noticed that our cloud sync application is woken up by PowerNap. This happens when the lid is closed and on WiFi, both when on battery and also when connected to power. The wake-up is quite short, and it is often the case that network traffic is still going when the machine goes back to sleep again.

Is it somehow possible for the application to inform the OS that it should not be woken up during PowerNap wake-up (API/plist/launchd)? I know we could probably use NSActivityOptions to prevent sleep when a network connection is still open, but just staying asleep is probably better.

Note: we're not using the FilesystemProviderExtension (yet), it is a "normal" application. Also, the application is started by launchd during login.

Opting-out from PowerNap wake-up
 
 
Q