Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- application (_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any]
- private func application(_ application: UIApplication, continue userActivity: NSUserActivity,
- restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
- let handled = DynamicLinks.dynamicLinks().handleUniversalLink(userActivity.webpageURL!) { (dynamiclink, error) in
- // let vc = NomeStoryboard.instance.configuracoes.instantiateViewController(withIdentifier: "idSB_ConfiguracoesApp_Onboard") as! ConfiguracoesAppPageViewController
- // UIApplication.shared.keyWindow?.rootViewController = vc
- }
- return handled
- }
- @available(iOS 9.0, *)
- func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool {
- return application(app, open: url,
- sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
- annotation: "")
- }
- func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
- if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url) {
- // Handle the deep link. For example, show the deep-linked content or
- // apply a promotional offer to the user's account.
- // ...
- return true
- }
- return false
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement