Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created Jun 12, 2017
Embed
What would you like to do?
val notificationID = 2
val messageCount = 8
val notification = Notification.Builder(this, id)
.setContentTitle(getString(R.string.title_discounts))
.setContentText(getString(R.string.description_discounts))
.setSmallIcon(R.drawable.ic_airplanemode_active_grey_24dp)
.setBadgeIconType(BADGE_ICON_SMALL)
.setNumber(messageCount)
.build()
notificationManager.notify(notificationID, notification)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment