Slackbot
12/05/2022, 9:40 AMSuraj Bahadur
12/05/2022, 9:46 AMTower Guidev2
12/05/2022, 9:54 AMval pendingIntent = TaskStackBuilder.create(context).run {
addNextIntentWithParentStack(TheIntentToNavigateBackTo)
addNextIntent(TheIntentToShowWebPage)
getPendingIntent(0, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE)
}
val builder = NotificationCompat.Builder(context, CHANNEL_ID)
.setSmallIcon(R.drawable.stacks)
.setContentTitle("${data.Name} ${context.getString(R.string.notification_title)}")
.setContentText(data.title)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setContentIntent(pendingIntent)
.setLocalOnly(true)
.setAutoCancel(true
Tower Guidev2
12/05/2022, 10:22 AMandroid:parentActivityName
?
https://developer.android.com/develop/ui/views/notifications/navigation#define_your_apps_activity_hierarchy