-
-
Save garg-lucifer/57cf4cf45ad451c22d5ff278099232c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun createNotificationChannel() { | |
val importance = NotificationManager.IMPORTANCE_HIGH | |
val channel = NotificationChannel("to_do_list", "Tasks Notification Channel", importance).apply { | |
description = "Notification for Tasks" | |
} | |
val notificationManager = activity?.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager | |
notificationManager.createNotificationChannel(channel) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment