Which call attaches the action performed when the notification is tapped?

  1. setPriority()
  2. setContentIntent(pendingIntent)
  3. setSmallIcon()
  4. setChannelId()
Answer

B) setContentIntent(pendingIntent)

setContentIntent sets the PendingIntent fired on tap.

Computer Science MCQ · More Intents and Notifications MCQs · Practise