SyntaxFix
Write A Post
Hire A Developer
Questions
Looks like you missed this part,
notification.contentIntent = pendingIntent;
Try adding this and it should work.