-
-
Save tbatsuur/4d741b7dcc3415f649cd1ee8aea7fb0e 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
notificationBuilder = NotificationCompat.Builder(this) | |
notificationBuilder.setAutoCancel(true) | |
.setDefaults(Notification.DEFAULT_ALL) | |
.setWhen(System.currentTimeMillis()) | |
.setSmallIcon(R.mipmap.ic_launcher) | |
.setTicker("Hearty365") | |
.setContentTitle(notification.title) | |
.setContentText(notification.body) | |
.setSound(soundUri) | |
.setContentIntent(pendingIntent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment