From c8ab0ae7be7ae2d10b983a0e0b6fd68729b98868 Mon Sep 17 00:00:00 2001 From: Yuto Tokunaga Date: Sat, 21 Mar 2026 14:46:50 +0900 Subject: [PATCH] fix(ios): restore locationServicesEnabled() guard in currentPermissions The global Location Services check was inadvertently dropped when switching to appModel.locationAuthorizationStatus(). Without it the gateway can advertise location as usable while system-wide Location Services are off. --- apps/ios/Sources/Gateway/GatewayConnectionController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/ios/Sources/Gateway/GatewayConnectionController.swift b/apps/ios/Sources/Gateway/GatewayConnectionController.swift index 8b0480fcd3f..5ce40eeaa1f 100644 --- a/apps/ios/Sources/Gateway/GatewayConnectionController.swift +++ b/apps/ios/Sources/Gateway/GatewayConnectionController.swift @@ -895,6 +895,7 @@ final class GatewayConnectionController { if let appModel = self.appModel { permissions["location"] = Self.isLocationAuthorized( status: appModel.locationAuthorizationStatus()) + && CLLocationManager.locationServicesEnabled() } permissions["screenRecording"] = RPScreenRecorder.shared().isAvailable