How to respond to local notification when app is completly closed (not in background)?
When the app is running in the background or foreground everything works fine. But when the app is closed and I'm trying to answer to a notification, only "application didFinishLaunchingWithOptions"
gets called, "userNotificationCenter didRecive response
" isn't answering.
I found this question (How to handle UNNotificationAction when app is closed?) but in my case it doesn't work neither at a real device nor in a simulator.
I also noticed that the function "UNUserNotificationCenter.current().getDeliveredNotifications()"
returns nil
when I'm responding to a notification while app is closed.