-
-
Save hitherejoe/46c4747d54eab478d7262c617533dc22 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
val notificationManager = | |
getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager | |
val id = "some_channel_id" | |
val name = getString(R.string.channel_name) | |
val description = getString(R.string.channel_description) | |
val importance = NotificationManager.IMPORTANCE_LOW | |
val channel = NotificationChannel(id, name, importance) | |
channel.description = description | |
channel.setShowBadge(true) | |
notificationManager.createNotificationChannel(channel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment