iOS: apple universal link if app is not open?

后端 未结 1 1451

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

相关标签:
1条回答
  • 2021-01-21 06:26

    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
    }
    
    0 讨论(0)
提交回复
热议问题