application(_:continue:restorationHandler:)
AppDelegate.reachfive().application(application, continue: userActivity, restorationHandler: restorationHandler)
Description
Allows ReachFive to handle user activity continuation such as handoffs, and more importantly, universal links.
This method is required by WeChat and by any universal-link provider (such as B.connect): when an external app reopens your app via a universal link to finish a login, the SDK completes the in-flight web authentication session out-of-band through this hook.
Call this method in response to the equivalent UIKit method application(:continue:restorationHandler:). If your app uses scenes, forward scene(:continue:) here as well.
|
The method returns a Universal-link delivery requires an The in-flight login only lives in memory. If iOS terminates your app while the user is in the external app, the login is lost: when the universal link relaunches your app, this method returns |
Examples
import Reach5
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
return AppDelegate.reachfive().application(application, continue: userActivity, restorationHandler: restorationHandler)
}
}
Parameters
| Parameter | Description |
|---|---|
The UIKit Application instance. For more details, see Apple: UIApplication. |
|
The activity object containing the data associated with the task the user was performing. |
|
A block to execute if your app creates objects to perform the task the user was performing. |