App crashing when initiating Vid/Voice calls

Hello. App currently crashes whenever a call is initiated, Below is the log cat:

android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=2 pri=4 contentView=null vibrate=null sound=null defaults=0x0 flags=0x42 color=0xff03a9f4 category=call vis=PRIVATE)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1768)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Hello,

Can you please check whether you have created a notification channel in your application class.
From Android 8, it’s necessary to create notification channel to use notificationBuilder.

Please check below link for reference.

Hi. Thanks for getting back to us. We managed to fix the issue by using a similar approach as the one you mentioned

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.