firebase_messaging_flutter icon indicating copy to clipboard operation
firebase_messaging_flutter copied to clipboard

error: cannot find symbol List<NotificationChannel> channels = notificationManagerCompat.getNotificationChannels();

Open tony123S opened this issue 3 years ago • 2 comments

Error

/home/xxx/Desktop/flutter_linux_1.22.6-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-4.0.1+1/android/src/main/java/com/dexterous/flutterlocalnotifications/FlutterLocalNotificationsPlugin.java:1260: error: cannot find symbol
            List<NotificationChannel> channels = notificationManagerCompat.getNotificationChannels();
                                                                          ^
  symbol:   method getNotificationChannels()
  location: variable notificationManagerCompat of type NotificationManagerCompat
1 error

tony123S avatar Mar 05 '21 06:03 tony123S

Any luck on this tony? @tony123S

danielgchap avatar May 16 '21 16:05 danielgchap

I changed to val notificationManager = getSystemService(context, Context.NOTIFICATION_SERVICE) as NotificationManager

gadearaujo avatar Jun 22 '21 06:06 gadearaujo