Bad notification for start Foreground, Invalid channel for service notification:

前端 未结 5 876
忘了有多久
忘了有多久 2021-02-15 14:20

So, i have an app on store with 50000 users. Recently i updated my android studio and compiled SDK to 27. I made some changes to support android 8 changes including Notification

5条回答
  •  难免孤独
    2021-02-15 14:26

    You forgot to set channel id for the notification.

    if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) builder.setChannelId(youChannelID);
    

    The if statement is optional and depends on your Min SDK level.

提交回复
热议问题