My app can successfully handle apple universal links, if the app is already open (backgrounded). But if the app is not open already, then when I tap such a link in, say, mail, t
You are correct. If the app is not in background "continueUserActivity" will not be called.
Instead, application:didFinishLaunchingWithOptions
will call with the information:
let activityDic = launchOptions?[UIApplicationLaunchOptionsUserActivityDictionaryKey]
if let isActivityDic = activityDic {
// Continue activity here
}