Close Menu
geekfence.comgeekfence.com
    What's Hot

    Fishery Satellite Surveillance Redefines Ocean Oversight

    July 17, 2026

    Huawei’s purpose-built tourism LLM shines in Xi’an

    July 17, 2026

    The Right Amount of Spec for Agentic Development – O’Reilly

    July 17, 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 Read0 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

    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

    ios – HKStatisticsCollectionQuery initialResultsHandler returns nil results for one specific user — read auth granted, data exists, survives reinstall

    July 2, 2026

    Installing simulator runtimes from the command line – Donny Wals

    June 29, 2026

    SwiftText Learns to Write | Cocoanetics

    June 28, 2026
    Top Posts

    Understanding U-Net Architecture in Deep Learning

    November 25, 202562 Views

    Hard-braking events as indicators of road segment crash risk

    January 14, 202631 Views

    Redefining AI efficiency with extreme compression

    March 25, 202630 Views
    Don't Miss

    Fishery Satellite Surveillance Redefines Ocean Oversight

    July 17, 2026

    In the eastern Indian Ocean, south of Java in the vast sea stretching toward Australia,…

    Huawei’s purpose-built tourism LLM shines in Xi’an

    July 17, 2026

    The Right Amount of Spec for Agentic Development – O’Reilly

    July 17, 2026

    New York data centre moratorium pause puts power under review

    July 17, 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

    Fishery Satellite Surveillance Redefines Ocean Oversight

    July 17, 2026

    Huawei’s purpose-built tourism LLM shines in Xi’an

    July 17, 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.