userNotificationCenter(...,didReceive,...)
and userNotificationCenter(...,willPresent,...)
are used respectively to:
handle when the user taps on a notification while the app is in the background
handle when the phone receives a notification while the app is in the foreground.
But how do we handle the event in which the user taps on the notification while the app is in the foreground? (to, for instance, take the user to the relevant view controller when tapping on the notification)