I love my sleep and I put my iPhone in do not disturb mode ( the moon
It is possible to code. Here is the page to alter the code of the security app.
https://developer.apple.com/documentati ... ertsetting
When UNNotificationSetting.enabled, this property authorizes the app to play critical sounds that ignore Do Not Disturb and the device’s mute switch.
For local notifications, the system attempts to play a critical sound when the sound property of the UNNotificationContent object contains an object returned by the defaultCritical property, the criticalSoundNamed(_:) method, or a related method.
For remote notifications, the system attempts to play a critical sound when the notification’s payload contains a sound directory that contains the critical key.
Critical alerts require a special entitlement issued by Apple.
It is a simple change and I really hope you can built this in the app, maybe with an option to enable or disable the bypass in the security app options
Thanks