application(_:open:options)

AppDelegate.reachfive().application(application, open: url, options: options)

Description

Allows ReachFive to handle URLs in the following format:

  • reachfive-clientId://

This callback URL is used to open the app from another app or by in-app web-based flow. The calling app can be a provider native app, or an email client in passwordless, MFA step-up or account recovery flows.

Call this method in response to the equivalent UIKit method application(:open:options). If your app uses scenes, forward scene(:openURLContexts:) here as well.

The method returns a Bool that tells you whether ReachFive actually consumed the URL. Do not assume ReachFive handles every URL you forward. When false is returned, your app should route the link itself.

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

application UIApplication

The UIKit Application instance.

For more details, see Apple: UIApplication.

url URL

The URL resource to open.

options [UIApplication.OpenURLOptionsKey : Any]

A dictionary of URL handling options.

For more details, see Apple: _:open:options:.

R5 AI Assistant

Confirm Deletion