Question: What is foreground service Android?

  Blog

Question: What is foreground service Android?

Answer

Foreground services are an
advanced Android concept which allows you to display notifications to your users when running long lived background tasks
. The notification acts like any other notification, however it cannot be removed by the user and lives for the duration of the service.