- Device Settings → Advanced Settings → Battery manager → Power plan set to Performance
- Device Settings → Advanced Settings → Battery Manager → Protected apps – check your app as Protected
- Enable Device Settings → Apps → your app → Battery → Power-intensive prompt and Keep running after screen off