OnSensorChane not being called in some devices

71 Views Asked by At

I have tried integrating pedometer. I have came across one issue that onSensorChanges is not being called in specifically ONEPLUS 8 Can any one help ?

I am registering listener as below

 sensorManager.registerListener(SensorService.this, sSensor, SensorManager.SENSOR_DELAY_FASTEST);

Not adding full code as it is working in other device liek Samsung A50.

0

There are 0 best solutions below