From 7bcd960aa2061852c97188c0aaae6b72fb3868f8 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 14 Sep 2026 13:20:27 -0400 Subject: [PATCH 1/3] swapped audio and video request access --- Neuro App/AppDelegate.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index d544175..972e3ed 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -100,7 +100,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - AVCaptureDevice.requestAccess(for: .video) { granted in + AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { // Access granted } else { @@ -108,7 +108,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - AVCaptureDevice.requestAccess(for: .audio) { granted in + AVCaptureDevice.requestAccess(for: .video) { granted in if granted { // Access granted } else { @@ -116,6 +116,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } + + registerForVoIPPushes() return true From a818b6a22214198ac008564fc5521f779008aa40 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 14 Sep 2026 13:20:58 -0400 Subject: [PATCH 2/3] conflict 2 --- Neuro App/AppDelegate.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index 972e3ed..4ed47a5 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -100,7 +100,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - AVCaptureDevice.requestAccess(for: .audio) { granted in + + + AVCaptureDevice.requestAccess(for: .video) { granted in if granted { // Access granted } else { @@ -108,14 +110,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - AVCaptureDevice.requestAccess(for: .video) { granted in + AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { // Access granted } else { // Access denied } } - registerForVoIPPushes() From 4967582f317b626c8906901e368cc9bd29077381 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 14 Sep 2026 13:21:32 -0400 Subject: [PATCH 3/3] test3 --- Neuro App/AppDelegate.swift | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index 4ed47a5..9d58269 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -90,33 +90,36 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD checkforUUID() // Configure notification settings UNUserNotificationCenter.current().delegate = self - UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { granted, error in + + AVCaptureDevice.requestAccess(for: .video) { granted in if granted { - DispatchQueue.main.async { - UIApplication.shared.registerForRemoteNotifications() - } + // Access granted } else { - print("Notification permission denied: \(String(describing: error))") + // Access denied } } - - - AVCaptureDevice.requestAccess(for: .video) { granted in + AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { // Access granted } else { // Access denied } } - - AVCaptureDevice.requestAccess(for: .audio) { granted in + + UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { granted, error in if granted { - // Access granted + DispatchQueue.main.async { + UIApplication.shared.registerForRemoteNotifications() + } } else { - // Access denied + print("Notification permission denied: \(String(describing: error))") } } + + + + registerForVoIPPushes()