diff --git a/Neuro App/AppDelegate.swift b/Neuro App/AppDelegate.swift index 099b5c2..0cf3a23 100644 --- a/Neuro App/AppDelegate.swift +++ b/Neuro App/AppDelegate.swift @@ -100,7 +100,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - AVCaptureDevice.requestAccess(for: .audio) { granted in + AVCaptureDevice.requestAccess(for: .video) { granted in if granted { // Access granted } else { @@ -108,7 +108,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } - AVCaptureDevice.requestAccess(for: .video) { granted in + AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { // Access granted } else { @@ -116,6 +116,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } } + + registerForVoIPPushes() return true