Method 'scene(_:openURLContexts:)' is not called

后端 未结 3 1119
深忆病人
深忆病人 2021-01-17 10:44

In info.plist file I configured URL Identifier and URL Scheme successfully. Also I am able to open app using custom URL. The problem is when app la

3条回答
  •  心在旅途
    2021-01-17 11:14

    Maybe this will help your situation.

    
    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
    
        let urlinfo = connectionOptions.urlContexts
        let url = urlinfo.first?.url as! NSURL
    
    }
    
    func scene(_ scene: UIScene, openURLContexts URLContexts: Set) {
    
        let url = URLContexts.first!.url as NSURL
    
    }
    
    

提交回复
热议问题