IMU stops publishing when the screen is off


We would like to have the IMU publish while the phone screen is off. However, even when we put the app in the background, the IMU stops publishing when we turn off the screen. Is this something we need to fix from the application side or is it an OS setting? Any advice or hints on how to achieve this would be highly appreciated.

Our code development info:
SDK Version: 6.0.8
Platforms: Android and iOS