Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
val pendingIntent: PendingIntent =
Intent(this, { notificationIntent ->
PendingIntent.getActivity(this, 0, notificationIntent, 0)
val notification: Notification = Notification.Builder(this, CHANNEL_DEFAULT_IMPORTANCE)
startForeground(ONGOING_NOTIFICATION_ID, notification)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.