setTargetPageRef in Custom Notification in Salesforce
Sample Code: String pgRef = '{ type: "standard__recordPage",attributes:{recordId:' + objAcc.Id + ',objectApiName: "Account",actionName: "view"} }'; notification.setTargetPageRef( pgRef ); In the above code, it redirects the user to the Account Record ....