My foreground service doesn\'t show a notification when it works on Android Oreo.
It works perfectly on Android versions from 15 to 25.
When I do targetSdkVersion<
Step #1: Set project.ext.supportLibVersion to 26.1.0 or higher
Step #2: Note that you are now getting deprecation warnings on all your new NotificationCompat.Builder() calls
Step #3: Define a NotificationChannel (if you have not defined it on some previous run of the app)
Step #4: Pass the channel ID to the NotificationCompat.Builder constructor