To workaround Oreo's limitations, I decided to add a line
If SdkVersion >= 26 Then Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS
To my surprise I noticed additional icon in status bar and a dummy notification from my app in notification bar.
If to remove a line, which I added to service, dummy notification and icon in status bar will disappear.
So, I completely sure that dummy notification is a side effect of Service.AUTOMATIC_FOREGROUND_ALWAYS.
Is it possible to avoid similar effect ?
If SdkVersion >= 26 Then Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_ALWAYS
To my surprise I noticed additional icon in status bar and a dummy notification from my app in notification bar.
If to remove a line, which I added to service, dummy notification and icon in status bar will disappear.
So, I completely sure that dummy notification is a side effect of Service.AUTOMATIC_FOREGROUND_ALWAYS.
Is it possible to avoid similar effect ?