Skip to content Skip to sidebar Skip to footer

Cannot Find Method Createnotificationchannel(notificationchannel)

I'm trying to handle notification with Android Oreo (SDK 27). Here is my code creating the NotificationChannel: NotificationManagerCompat notificationManager = NotificationManagerC

Solution 1:

There is no createNotificationChannel() method on NotificationManagerCompat. You have to use the native NotificationManager for that.

UPDATE 2019-07-29: As Onkar Nene points out, they finally added createNotificationChannel() on NotificationManagerCompat. Use androidx.appcompat:appcompat:1.1.0-rc01 or newer.

Post a Comment for "Cannot Find Method Createnotificationchannel(notificationchannel)"