RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException:

0

I am using more than 2 services in my application , i applied different solutions but they didn't work, app is kill on version after creating a case.

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.abca, PID: 7454
    android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x42 color=0x00000000 groupKey=net.gotev vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1879)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7091)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
android
service
notifications
runtimeexception
remoteserviceexception
asked on Stack Overflow Jan 9, 2020 by Kanwal Khan • edited Jan 9, 2020 by Raymond

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0