How to use NotificationCompat.Builder and startForeground?
I had the exact same problem a while ago, and I found out that for some reason, the notification ID 0 doesn't work well with startForeground()
, is it the value of NOTIFICATION_ID
in your code?
EDIT: the documentation has now been updated to state that 0 is an invalid ID