Running tasks in the background consumes a device’s limited resources, like RAM and battery. This might result in a bad user experience. For example, background tasks may degrade the battery life of…