Close Menu
geekfence.comgeekfence.com
    What's Hot

    Some Galaxy Z Fold 8 models are delayed until October – Tech Advisor

    August 6, 2026

    IEEE Course on Using AI to Modernize Power Grids

    August 6, 2026

    Market Connectivity Score, H2 2026

    August 6, 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 Read5 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, 202572 Views

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

    May 16, 202639 Views

    Hard-braking events as indicators of road segment crash risk

    January 14, 202634 Views
    Don't Miss

    Some Galaxy Z Fold 8 models are delayed until October – Tech Advisor

    August 6, 2026

    Pre-orders have exceeded Samsung’s, or anyone’s, expectations, reportedly setting a record for a Samsung Galaxy…

    IEEE Course on Using AI to Modernize Power Grids

    August 6, 2026

    Market Connectivity Score, H2 2026

    August 6, 2026

    Your AI Agent Isn’t a Static Artifact. It’s Growing Up. – O’Reilly

    August 6, 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

    Some Galaxy Z Fold 8 models are delayed until October – Tech Advisor

    August 6, 2026

    IEEE Course on Using AI to Modernize Power Grids

    August 6, 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.