application(_:open:options)
AppDelegate.reachfive().application(application, open: url, options: options)
Description
Allows ReachFive to handle URLs in the following format:
-
reachfive-clientId://
This includes the custom-scheme out-of-band login flow: when an external app finishes a login by reopening your app through the SDK’s custom scheme, the SDK completes the in-flight web authentication session here. This is the custom-scheme counterpart of the universal-link flow handled by application(_:continue:).
Additionally, the method allows configured providers to handle their own native links.
Call this method in response to the equivalent UIKit method application(:open:options). If your app uses scenes, forward scene(:openURLContexts:) here as well.
Examples
import Reach5
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
return AppDelegate.reachfive().application(app, open: url, options: options)
}
}
Parameters
| Parameter | Description |
|---|---|
The UIKit Application instance. For more details, see Apple: UIApplication. |
|
The URL resource to open. |
|
A dictionary of URL handling options. For more details, see Apple: _:open:options:. |