Notification_example

the message is not popping…and i am not able to see any error …so please kindly explain …

@silverhawk As mentioned in the video you need to create a Notification channel for Android version greater than Oreo.

Add the following code after declaring the NotificationManager


        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            String name = "first";
            String description = "channel description";
            int importance = NotificationManager.IMPORTANCE_DEFAULT;
            NotificationChannel channel = new NotificationChannel("1", name, importance);
            channel.setDescription(description);
            NotificationManager notificationManager = getSystemService(NotificationManager.class);
            notificationManager.createNotificationChannel(channel);
        }

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.