The iPhone 8 will detect when you're looking at it, leaked code suggests
What @jsnell talked about on the last @_upgradefm is true: the iPhone will suppress notification sounds if you're looking at it pic.twitter.com/eFzKUfZYDx
— Guilherme Rambo (@_inside) August 8, 2017
What you're looking at above are a pair of strings referencing something called an "Attention Awareness Observer," which appears to control the notification sound volume. And given recent rumors of the iPhone 8's 3D facial recognition tech, a gaze tracking feature makes almost perfect sense — provided it doesn't cause too much battery drain, of course.
Now, the intro above is a bit misleading — so far, there's no indication that Apple has any intention of letting app developers access to the feature. It may well choose to keep it locked and use it for low-level OS purposes like this only, but given the unofficial nature of the findings, it's a bit too early to say. If it does, however, it would go a long way towards keeping the inevitable complaints from privacy advocates at bay. Regardless, here's hoping the entire feature can be disabled if it actually makes its way to the device.
source: Guilherme Rambo
Things that are NOT allowed: