When the app is closed and the user taps on a notification:
1) didFinishLaunchingWithOptions is called with a remoteNotification object. I set the rootViewController here as expected
2) userNotificationCenter(_, didReceive, withCompletionHandler) is also called.
The thing is, I don't want to do anything on step 2 because I already handled the notification on step 1). But, if the app was in the foreground or background, I do want to handle the notification in step 2). I don't know how to differentiate these two cases.