Foreground Services

A foreground service is a service that the user is actively aware of because Android requires it to post a non-dismissable ongoing notification. They are typically used to show the user the real-time progress of a long-running operation. Allows the user to perform basic interactions with your service. Examples would be playback controls in a music app or Google Maps navigation instructions.

Android will prioritise these even if the system is memory constrained.