Skip to content

Instantly share code, notes, and snippets.

@kingjinho
Created July 23, 2020 12:40
Show Gist options
  • Save kingjinho/ce07877f9e209e084d5cfc4da298137b to your computer and use it in GitHub Desktop.
Save kingjinho/ce07877f9e209e084d5cfc4da298137b to your computer and use it in GitHub Desktop.
notify user
fun notifyUser(num : Int) {
mNotificationManagerCompat = NotificationManagerCompat.from(CONTEXT)
//id: unique in your app. otherwise, it will update to new one
mNotificationManagerCompat.notify(num, mNotificationBuilder.build())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment