Using the Setexpedited() function in Workmanager ( 2.7 >), is useful to start a persistent work that last even if the user close the app and/or put it in background.
The problem is that it needs to show a notification everytime the work starts, even when the app is already active and in foreground, so a notification should not be necessary.
Is there a way to avoid workmanager/setexpedited to show the notification if the app is in foreground?