Closed johnspackman closed 9 months ago
Can the plugin author confirm this? useSensor is not working with simulator?
yes, we do a check for isDeviceMotionAvailable
which would return false on simulators and then the sensor data would never be read. Should probably return some sort of error though.
As sensor data is not available on simulator there's not a whole lot we could do about this unless we add an API specifically for simulators, but that doesn't seem like the greatest idea.
I believe it should return an error on the simulator now rather than simply never returning.
I can't get
useSensor:true
to ever work on the simulator - theNativeDeviceOrientationCommunicator. orientation
never returns from it's promise and theonOrientationChanged
stream never fires any eventsIs this a known issue?