Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Beginning with Android Q, Background Activity Starts should be done by notification triggered activities.
val fullScreenIntent = Intent(this,
val fullScreenPendingIntent = PendingIntent.getActivity(this, 0,
fullScreenIntent, PendingIntent.FLAG_UPDATE_CURRENT)
val notificationBuilder = NotificationCompat.Builder(this, CHANNEL_ID)
.setFullScreenIntent(fullScreenPendingIntent, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment