How can I open my application when the user received a notification and my application was in the background? Of course, when you click on the notification, the application will open, but how to handle it using the custom notification action?
I already implemented UNUserNotificationCenterDelegate and userNotificationCenter (_, didReceive, ...) already
I just need a code that will open my application and take a specific action (for example, go to a specific view)
It would be nice if the notification handler finds out that the notification and the open iPhone application or the Apple Watch application depend on where the action was performed.
source share