Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @available(iOS 9.0, *)
- func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool {
- return application(app, open: url,
- sourceApplication: options[UIApplicationOpenURLOptionsKey.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