At night if my P9 is left plugged in charging, it will sound all notifications that I have given permission to via battery settings (protected apps).
If however the P9 is NOT plugged into the wall, after a period of time no notifications sound. I imagine it goes into a type of deep sleep mode...