Android System - applications running in the background notification

Since O Preview of a new notification for apps is running in the background. "Initially, even Google Play Music violated this https://issuetracker.google.com/issues/62470721

Google somehow fixed this on Google Play Music and Maps at least)

W8l0x.png

I upgraded the test application to the target O and using the new Context.StartForegroundService in accordance with the instructions for changing the behavior, and then added a notification channel to the notification sent to startForeground.

However, the “running in the background” notification still appears (including previously blocked Google apps)

8c16b.png

The behavior documentation does not refer to this, its reasoning, or how to prevent it. Except that you are not using the service in any way to stop it?

+5
source share

Source: https://habr.com/ru/post/1271155/


All Articles