hemanthrajv / flutter_compass

MIT License
102 stars 188 forks source link

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

Closed mmahgoub closed 2 years ago

mmahgoub commented 2 years 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 2 years ago

Same

mmahgoub commented 2 years 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 2 years ago

I am closing this since i knew what was the problem