我已将其集成Firebase DeepLink/DynamicLinks/UniversalLink到我们的应用程序中。当app is running或 处于, 时background/foreground state,Deep Links工作没有问题。但是,当应用程序处于not running或处于killed/terminated状态时,应用程序将启动,但不会调用或初始化任何触发方法。就像它只触发URL Scheme. 因此,结果,我无法获取所单击的深层链接的数据,这是一个大问题。
IndidFinishLaunchingWithOptions: launchOptions始终为零,因此launchOptions[.url]为零
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
Run Code Online (Sandbox Code Playgroud)
并且open url:options:不触发
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
Run Code Online (Sandbox Code Playgroud)
当然这个continue userActivity:restorationHandler:不会触发
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
Run Code Online (Sandbox Code Playgroud)
因此,我只能启动该应用程序而没有捕获任何数据。任何解决方法或建议表示赞赏。谢谢!