[Interest] AmbientLightSensor dead on iOS

Artem Sidyakin artem.sidyakin at qt.io
Tue Sep 18 20:20:04 CEST 2018


I’ve tried it on my iPhone, but result is the same as yours.
I’ve also tried checking connectedToBackend property and it is false, so I guess that’s the reason. But I don’t know why it’s not connected, because for other sensors it is true and I can get their readings.

---
Artem Sidyakin

> On 18 Sep 2018, at 18:40, Jason H <jhihn at gmx.com> wrote:
> 
> http://doc.qt.io/qt-5/compatmap.html states that AmbientLightSensor is on iOS.
> 
> 	AmbientLightSensor {
> 		active: true
> 		skipDuplicates: false
> 		onReadingChanged: {
> 			console.log("lightLevel", reading.lightLevel);
> 		}
> 	}
> 
> produces no updates, nor any warnings or errors.
> 
> Does this actually work? Did it ever?
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list