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.
sSensor
here? Not all devices have all the sensors, but I suppose the accelerometer at least should exist on all phones. A "step detector" or "step counter" might not.