I have implemented custom UI for push notification using Notification Content Extension. I have added an "View" action as below
let navigateAction = UNNotificationAction(identifier: "ActionNotification", title: "View", options: [])
let deafultCategory = UNNotificationCategory(identifier:
"myNotifService", actions: [navigateAction], intentIdentifiers:[], options: [])
Now, in Content Extension's class - NotificationViewController
func didReceive(_ response: UNNotificationResponse, completionHandler completion:(UNNotificationContentExtensionResponseOption) -> Void) {
if response.actionIdentifier == "ActionNotification" {
// HERE I NEED TO NAVIGATE TO SPECIFIC VIEW CONTROLLER
}
completion(.dismiss)
}
Whenever I click on "View" button, above function is triggered but I need to navigate to specific screen from here. Please help.
Thanks in Advance.