Closed lorencerri closed 11 months ago
iOS does actually have an API for this: https://developer.apple.com/documentation/sensorkit/srsensor/3377673-ambientlightsensor
But unfortunately, they only allow its usage for research study apps.
Apple only grants the entitlement for approved research studies.
Description
I’m honestly not sure if Apple allows access to sensors like the ambient light level one but it seems super useful for the new action button to see if it’s needed to turn on the flashlight.