You should use File - Export as zip when uploading to the forum.
The task manager kills the process so the service stops. The only thing that you can do, which might help, is to periodically call StartServiceAt to cause the Notification service to start again.
I tried on an Asus ZenFone 2 with Android 6.01 and it works correctly. The operating system kills the app but the service stays sticky, so it works properly.
You should use File - Export as zip when uploading to the forum.
The task manager kills the process so the service stops. The only thing that you can do, which might help, is to periodically call StartServiceAt to cause the Notification service to start again.
Sorry, why I'd call StartServiceAt instead of making my service a "sticky" service? Making a service "sticky" using
#StartCommandReturnValue: android.app.Service.START_STICKY
should restart my service if someone will kill it, right?