From 1fc8ea4b7d5511ebd9de41c665dc79037c81e72b Mon Sep 17 00:00:00 2001 From: David Date: Mon, 14 Sep 2026 13:22:24 -0400 Subject: [PATCH 1/2] test4 --- Neuro App/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index 9d58269..0e5cba1 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -91,7 +91,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Configure notification settings UNUserNotificationCenter.current().delegate = self - AVCaptureDevice.requestAccess(for: .video) { granted in + AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { // Access granted } else { @@ -106,7 +106,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Access denied } } - + UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { granted, error in if granted { DispatchQueue.main.async { From 1233e5f3e62b94afa0bfe16b8f47883f259725f3 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 14 Sep 2026 13:23:25 -0400 Subject: [PATCH 2/2] test --- Neuro App/AppDelegate.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index 0e5cba1..37ec93c 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -91,13 +91,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Configure notification settings UNUserNotificationCenter.current().delegate = self - AVCaptureDevice.requestAccess(for: .audio) { granted in - if granted { - // Access granted - } else { - // Access denied - } - } + AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { @@ -117,7 +111,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - + AVCaptureDevice.requestAccess(for: .audio) { granted in + if granted { + // Access granted + } else { + // Access denied + } + }