iOS 15: Critical Alert Notification

We are using Critical Alert notification in our application, it works great when custom sound is provided in sound dictionary in push notification payload and when volume is set to 1.0.

Now, when I receive critical alert notification on device and set volume to 0.0, it still plays some default sound.

When volume is set to 0.0, I expect here sound will not play. However, its playing. Above mentioned behaviour is observed on iOS 15.1.1. On below versions its working as expected. i.e. no sound will be played.

Am I missing anything in setting or payload?

Answered by robnotyou in 698032022

A "Critical Alert" appears even when the device is in Do Not Disturb mode, or silenced.
They cannot be silenced, as they are considered "Critical"!

If you want to be able to silence your alert, then it must not be a Critical Alert.

See https://developer.apple.com/documentation/usernotifications/unnotificationsettings/2963116-criticalalertsetting

Accepted Answer

A "Critical Alert" appears even when the device is in Do Not Disturb mode, or silenced.
They cannot be silenced, as they are considered "Critical"!

If you want to be able to silence your alert, then it must not be a Critical Alert.

See https://developer.apple.com/documentation/usernotifications/unnotificationsettings/2963116-criticalalertsetting

My critical alerts (launched locally with UNUserNotificationCenter) unfortunately do not play a sound when my device (iPhone 8 / iOS 16.2) is on silent mode. Does anyone has a fix for this?

iOS 15: Critical Alert Notification
 
 
Q