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

前端 未结 5 875
忘了有多久
忘了有多久 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:23

    I just just solved this problem in my application, what happened is that in the class that used my notifications, I kept the CHANNEL_ID and CHANNEL_NAME of the NotificationChannel in a String and Constant, Static or Final variable, but I moved those values ​​to the XML Resource.String since they are values ​​that I never change and I get them with GetString (Resource.String.CH_NAME_GPS_ERROR_ID) and I don't know why but it worked, I hope this also solves your problem

提交回复
热议问题