hemanthrajv / flutter_compass

MIT License
98 stars 141 forks source link

Getting null values on iOS devices and Simulator in debug mode #88

Closed mmahgoub closed 1 year ago

mmahgoub commented 1 year ago

I ran the example on the Simulator and on iPhone but I get null values and snapshot.ConnectionState is stuck in ConnectionState.waiting

version 0.7.0

Metaphysics0 commented 1 year ago

Same

mmahgoub commented 1 year ago

I was using a virtual machine for testing but with a physical device it worked fine. The initial value if heading is null and you have to poke the phone for values to come from the sensor.

As gor the simulator I don't it has the sensors emulation.

mmahgoub commented 1 year ago

I am closing this since i knew what was the problem