MacBook Pro Late 2013
macOS Mojave 10.14.3
My Question or Issue
Unfortunately Spotify prevents my Mac from sleeping, when a song is paused.
You can reproduce this issue by issuing the following command in a Terminal:
pmset -g assertions
If Spotify is closed, PreventUserIdleSystemSleep will be 0.
However if Spotify is started and a song is paused, PreventUserIdleSystemSleep will be set to 1.
This means that the Mac does not sleep, and eventually will drain your battery.
Apparently this Bug has been around since 2012:
but has not been adressed ever since. Please fix this.
This is also not an OS problem: iTunes handles this correctly! If a song is paused, the Mac will be able to sleep!