Following up on this closed thread: Keep DeviceMotion listener running in background
Is there any way to track the device motion while in background on iOS?
With the current implementation, the listener stops receiving events as soon as the device goes into background.
Well, after some investigation… if anyone is wondering, this is the intended behaviour of expo-sensors, and the solution is to simply alter the last few lines of EXBaseSensorModule.m where it starts/stops watching when the device lifecycle state changes according to your needs
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.