I am writing an application on Cordova. I need it to work in the background. Put the plugin - link
Everything works, but not on version 8.1.0. On this version, the application "falls", that is, knocks out a message that the application is stopped.
What could be the problem?
PS error code
android.app.RemoteServiceException: Bad notification for startForeground: java.Iang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=-2 contentView=null vibrate=null sound=null defaults=OxO flags=0x42 color=0x00000000 vis=PRIVATE) at android.app.ActivityThread$H.handleMessage(ActivityThread. java:1794) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java: 6635) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Runtimelnit$MethodAndArgsCaller.ru n(Runtimelnit.java:547) at com.android.internal.os.Zygotelnit.main(Zygotelnit.java: 823)