You're only one line of code away from making this notification clickable! Read the code and solve this problem.
val intent = Intent(context, Test::class.java)
val pIntent = PendingIntent.getActivity(this, 0, intent, 0)
val nBuilder = NotificationCompat.Builder(context, "nChannel")
.setSmallIcon(R.drawable.photo)
.setContentTitle("You've done it!")
.setContentText("This notification is now clickable")
.setStyle(NotificationCompat.BigTextStyle())
val nManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
nManager.notify(1, nBuilder.build())Tip: The answer should be under the NotificationCompat.Builder line. Pay attention to the PendingIntent variable name. The answer is case sensitive, and don't forget about the dot at the beginning of your code line! If you're still having problems, you should pay attention to the "PendingIntent and notifications" part of this topic.