-
-
Save tbatsuur/6380b5441e3d5028a1d6d7da8a4cf3df 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 notificationChannel = NotificationChannel(DEFAULT_NOTIFICATION_CHANNEL, "My Default Notifications", NotificationManager.IMPORTANCE_HIGH) | |
// Configure the notification channel. | |
notificationChannel.description = "Default Channel" | |
notificationChannel.enableVibration(true) | |
notificationChannel.vibrationPattern = longArrayOf(0, 1000, 500, 1000) | |
notificationManager.createNotificationChannel(notificationChannel) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment