diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index 3d97dc6..f92442a 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -91,15 +91,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // Configure notification settings UNUserNotificationCenter.current().delegate = self - AVCaptureDevice.requestAccess(for: .video) { granted in - if granted { - // Access granted - } else { - // Access denied - } - } + - AVCaptureDevice.requestAccess(for: .audio) { granted in + AVCaptureDevice.requestAccess(for: .video) { granted in if granted { // Access granted } else { @@ -117,6 +111,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } + AVCaptureDevice.requestAccess(for: .audio) { granted in + if granted { + // Access granted + } else { + // Access denied + } + } + + + + registerForVoIPPushes() return true