There are a lot of stackoverflow threads regarding this topic, but I still didn\'t find a good solution.
If the app is not in the background, I can check launc
In my case, background mode OFF did not make any difference. However when the app was suspended and the user tapped the notification, I could handle the case in this callback method:
func userNotificationCenter(_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void) {
}