I want to stop / reject the front-end notification for the service for the media player, which is very similar to the Google implementation for Google Music.
For example, in Google Music, if you play music, the notification cannot be deleted. However, if you pause the music, it is possible.
This is completely different from how it is implemented on Android 4.4, where the notification starts only after exiting the application and is deleted when you return to the application. I do not see how to implement this, or given the requirements of the service to receive a notification.
Any help would be greatly appreciated.
source share