Close Menu
geekfence.comgeekfence.com
    What's Hot

    Wilkie refers gambling concerns to anti-corruption commission

    August 13, 2026

    Lumen ready for AI traffic rush – with programmable fabric and “more fiber than anyone”

    August 13, 2026

    With a feel for physics, AI models simulate a wider range of real-world scenarios | MIT News

    August 13, 2026
    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    Facebook Instagram
    geekfence.comgeekfence.com
    • Home
    • UK Tech News
    • AI
    • Big Data
    • Cyber Security
      • Cloud Computing
      • iOS Development
    • IoT
    • Mobile
    • Software
      • Software Development
      • Software Engineering
    • Technology
      • Green Technology
      • Nanotechnology
    • Telecom
    geekfence.comgeekfence.com
    Home»iOS Development»ios – Do Critical Alert (Apple) sounds play one at a time, or can two overlap?
    iOS Development

    ios – Do Critical Alert (Apple) sounds play one at a time, or can two overlap?

    AdminBy AdminJuly 17, 2026No Comments2 Mins Read6 Views
    Facebook Twitter Pinterest LinkedIn Telegram Tumblr Email
    ios – Do Critical Alert (Apple) sounds play one at a time, or can two overlap?
    Share
    Facebook Twitter LinkedIn Pinterest Email


    I’m using UNNotificationSound.criticalSoundNamed with the Critical Alerts entitlement. I have two separate alarms that can each be active at the same time, each scheduling its own local notification on a repeating timer.

    Before switching to critical alerts, I played these with two AVAudioPlayer instances, and they overlapped fine. Now, using critical alert notifications instead, only one sound plays at a time — even when both are triggered around the same time.

    Is this expected? Does iOS only ever play one critical alert sound at a time per app (or system-wide), or is there a way to get two to play simultaneously?

    Code Snippet below:

    Things to note: UNUserNotificationCenter is a true singleton – from what I read online…so in theory the different “sounds” or audio clips will compete to play – causing a ruckus – and this is what is actually happening.

    I wanted to know if there is a work-around for this, or I should just resort to picking one sound to play at a time.

    private func scheduleCriticalMotionNotification() {
            let ids = Self.motionNotificationIDs
            let scheduleID = nextMotionNotificationIsA ? ids[0] : ids[1]
            let previousID = nextMotionNotificationIsA ? ids[1] : ids[0]
            nextMotionNotificationIsA.toggle()
    
            let center = dependencyContainer.notificationModel.notificationCenter
            center?.removePendingNotificationRequests(withIdentifiers: [previousID])
            center?.removeDeliveredNotifications(withIdentifiers: [previousID])
    
            let content = UNMutableNotificationContent()
            content.sound = .criticalSoundNamed(UNNotificationSoundName(rawValue: "idle_alert.wav"), withAudioVolume: alertVolume)
            content.interruptionLevel = .critical
            content.userInfo = ["ind_alert_kind": "one_to_one_motion"]
    
            let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 0.1, repeats: false)
            let request = UNNotificationRequest(identifier: scheduleID, content: content, trigger: trigger)
            center?.add(request) { error in
                if let error = error {
                    print("❌ Error scheduling critical no-movement alert: \(error)")
                }
            }
        }
    



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    What’s New in Xcode 27

    July 30, 2026

    ios – iCloud Dashboard returns “Internal Error” when querying records across all containers

    July 27, 2026

    ios – How to resolve the “Failed to build cache” build error in Xcode on macOS running in Docker in the docurr/macos project?

    July 22, 2026

    ios – Bizarre animation issue in SwiftUI

    July 12, 2026

    security – How and where mnemonic/private keys are generated/stored in IOS for mobile non-custodial wallet

    July 7, 2026

    JSON All the Way Down

    July 3, 2026
    Top Posts

    Understanding U-Net Architecture in Deep Learning

    November 25, 202579 Views

    The Next Paradigm in Efficient Inference Scaling – The Berkeley Artificial Intelligence Research Blog

    May 16, 202644 Views

    Is it too late to start learning AI and machine learning in my 30s or 40s?

    April 9, 202643 Views
    Don't Miss

    Wilkie refers gambling concerns to anti-corruption commission

    August 13, 2026

    Independent MP Andrew Wilkie has taken the fight over gambling reform to the National Anti-Corruption…

    Lumen ready for AI traffic rush – with programmable fabric and “more fiber than anyone”

    August 13, 2026

    With a feel for physics, AI models simulate a wider range of real-world scenarios | MIT News

    August 13, 2026

    Monitoring beyond SNMP: Turning your network into a sensor

    August 13, 2026
    Stay In Touch
    • Facebook
    • Instagram
    About Us

    At GeekFence, we are a team of tech-enthusiasts, industry watchers and content creators who believe that technology isn’t just about gadgets—it’s about how innovation transforms our lives, work and society. We’ve come together to build a place where readers, thinkers and industry insiders can converge to explore what’s next in tech.

    Our Picks

    Wilkie refers gambling concerns to anti-corruption commission

    August 13, 2026

    Lumen ready for AI traffic rush – with programmable fabric and “more fiber than anyone”

    August 13, 2026

    Subscribe to Updates

    Please enable JavaScript in your browser to complete this form.
    Loading
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
    © 2026 Geekfence.All Rigt Reserved.

    Type above and press Enter to search. Press Esc to cancel.