"To improve the user experience, Android 8.0 (API level 26) imposes limitations on what apps can do while running in the background"
developer.android.com/about/versions…
Background services is a big source of abuse on Android. Malware authors use that all the time. This is why they "imposes limitations on what apps can do while running in the background"