Android Question Bad notification for startForeground (Android 8.1+)

pompierecattivo

Member
Licensed User
Longtime User
Hello all,
sorry again for my bad english and in this case also for my very bad knowledge of code.
As the title say, my app crash immediately running on android 8.1+ devices.
This is the log i get back:

B4X:
Service Starter Start
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 tick defaults=0xfffffff8 flags=0x42 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1894)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7156)
    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:975)

I've found this old post here, but i think it's dont help me a lot..
Any answer appreciate, TY.
 

pompierecattivo

Member
Licensed User
Longtime User
Step by step.... on the road with this post. Lets try...

Ok, seems to be solved with the link upstair.
Thanks anyway, sorry for post (i leave it here, if admin think it could help someone)
 
Last edited:
Upvote 0

pompierecattivo

Member
Licensed User
Longtime User
Hello Erel, i just add some line on my las post, before yours.
Anyway i solve problem using integrated B4A 8+ notification. Before i was using library...
 
Upvote 0
Top