I have at least 2 apps(gmail and alarm.com) that have delayed notifications when my phone has not be awakened in several hours. When I press the power button to wake my phone, the delayed notifications then sound. I have turned battery optimization off for both of these apps and they are set to priority in notifications and the problem has continued. Is there another setting somewhere that I need to change?