Does anyone have any suggestions why this routine doesn't work? i.e. when Spotify is running, the AOD still activates, which I don't want because the music information is too small and dim with AOD.
I'm guessing it's when the app is currently open, ie your phone is unlocked and on the app currently. Not sure, but maybe switch the "if" statement to the "media is being played" option. Not 100% sure, but it might work
Thanks, that did stop AOD activating. However, I was hoping my phone would lock after 30 seconds but still remain with the lock screen displayed. I don't think there's an option to do this from what I've just been googling.