Can Critical Alerts Play Sound Continuously Until User Interaction?

We are developing an app that receives push notifications (via Firebase) from configured IoT devices. It is essential that when a specific type of notification is received, a sound is played continuously until the user interacts with the notification.

This behavior is crucial for alerting users to certain critical states of the IoT device.

We understand that Critical Alerts on iOS can bypass Do Not Disturb and silent mode. However, from our testing and available documentation, the sound from a Critical Alert seems to be limited to around 30 seconds.

Our question: Is it possible on iOS to have a Critical Alert (or any other type of notification) continue playing sound until the user interacts with the notification or app? If so, could someone please point us to the appropriate documentation or APIs?

Thanks in advance for any guidance.

Answered by Engineer in 838642022

It is not possible for a single notification sound to be longer than 30 seconds.

It is not possible for a single notification sound to be longer than 30 seconds.

Is it possible to schedule an alarm or run an app logic when the app is in terminated to play the audio instead with overriding DnD and have control over volume? Could read that iOS might terminate or not allow such things running the background when app is in the terminated state.

Can Critical Alerts Play Sound Continuously Until User Interaction?
 
 
Q