Android-Oreo-Foreground-Service-Simple-Example
Android-Oreo-Foreground-Service-Simple-Example copied to clipboard
Notification is removed
Notification is removed from notification bar when app is killed by user.As this is forground service it should not b removed.
If you use Youtube Music or other music player app that use foreground service, they make it in this way. If you kill the app it dies. The reason why we use foreground app is when app is not in foreground, we make a notification bar, so it keep runs on foreground to continuously play musics.