Xiaomi

Launch settings

‒ Open phone’s Settings > Permissions > Autostart > Turn ON for Pedometer.

Battery optimization settings

‒ Open phone’s Settings > Battery & performance > Manage apps battery usage > Choose apps > Select Pedometer > Choose “No restrictions” under Background Settings and “Allow” under Background Location setting.