Skip to content

Instantly share code, notes, and snippets.

@januprasad
Created February 17, 2020 15:18
Show Gist options
  • Save januprasad/644cc73a1e557b05683cc4ebc97e02db to your computer and use it in GitHub Desktop.
Save januprasad/644cc73a1e557b05683cc4ebc97e02db to your computer and use it in GitHub Desktop.
class AlarmReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
// This method is called when the BroadcastReceiver is receiving an Intent broadcast.
val notificationUtils = NotificationUtils(context)
val notification = notificationUtils.getNotificationBuilder().build()
notificationUtils.getManager().notify(150, notification)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment