ALLOW_WITHOUT_TRYING_APP_LINK property

NavigationActionPolicy ALLOW_WITHOUT_TRYING_APP_LINK
final

Allow the navigation without handing it off to an associated Universal Link application.

NOTE: available only on iOS and macOS. On other platforms it falls back to ALLOW. This uses WebKit's long-standing raw policy value and is intended for login and OAuth POST navigations that must remain in the WebView.

Officially Supported Platforms/Implementations:

  • iOS WKWebView
  • macOS WKWebView

Implementation

static final ALLOW_WITHOUT_TRYING_APP_LINK =
    NavigationActionPolicy._internalMultiPlatform(3, () {
      switch (defaultTargetPlatform) {
        case TargetPlatform.iOS:
          return 3;
        case TargetPlatform.macOS:
          return 3;
        default:
          break;
      }
      return 1;
    });