Using the Ambient Light Sensor for other purposes

We are looking to use the Ambient Light Sensor on iOS. It seems that there is a public API in the IOKit framework, however it has a disclaimer at the top that says "Although it is a public framework, Apple discourages developers from using it, and any apps using it will be rejected from App Store."


Looking at other forum posts, most people want to use the Light Sensor in order to adjust the brightness. Adjusting brightness will definitely get your App rejected by the App Store. What we are wondering is, will Apple reject any App that uses the light sensor, or only those Apps that use the light sensor to adjust the brightness?

I would be particularly interested in an answer to this. I am developing an astronomy application and want to detect if the user is in darkness or not as I want to switch colour schemes from white background with normal text during the day to a black background with dark red text at night (as red is low light and so doesn't affect night-vision as much as other colours).


This isn't directly changing the screen brightness at all - merely changing the colour schemes of the app itself.


Would this sort of thing be rejected if submitted to the App Store?

Apple says to not use the framework directly on iOS. Most likely Apple will reject the app regardless of the justification.

This question seems to be an exact duplicate of another question, and you can find my responde over there.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

ok, so any idea of a workaround?

Using the Ambient Light Sensor for other purposes
 
 
Q