I’m developing a macOS menu-bar app intended for distribution on the Mac App Store.
Is there a supported public API or an available entitlement that allows a sandboxed macOS app to read the built-in ambient light sensor in real time?
The feature would be optional, process readings locally, and adjust display dimming and warmth. It would not use the camera or transmit sensor data.
SensorKit’s ambient light API is unavailable on macOS in our SDK, and its research-only access and delayed data do not meet this use case. We want to avoid private APIs.
Could you confirm whether a supported approach exists, or advise how to submit an enhancement request?
Is there a supported public API … that allows a sandboxed macOS app to read the built-in ambient light sensor in real time?
No.
AFAIK sandboxing isn’t a factor here; a non-sandboxed app would have the same problem.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"