Nav Singh
Oct 5, 2022

--

Hi, It depends on the use case too. For e.g: if we want to inform the user that we want to do something important then we use foreground service with notification so that the user knows what we are trying to do.

Also, I read from the documentation that with Workmanger we can achieve the same behavior as a foreground service :

https://www.youtube.com/watch?v=spdNAwsC1GQ

--

--

Nav Singh
Nav Singh

Written by Nav Singh

Google Developer Expert for Android | Mobile Software Engineer at Manulife | Organizer at GDG Montreal

Responses (1)