Platform API mapping
Every public Dart API of advanced_webview and the native Android and iOS API it uses. Use it to find the underlying behaviour (and its platform quirks) in the official Android and Apple documentation, or to see which platform a feature is available on. Native class names marked with ↗ link to the official documentation.
| Status | Meaning |
|---|---|
| Supported | Works on this platform. |
| Partial | Works with a documented difference. |
| Creation only | Read when the native view is created; ignored by updateSettings. |
| Not supported | No effect on this platform. |
Lifecycle and widget
AdvancedWebViewControllerCreates and owns one native WebView.
AdvancedWebViewController.webViewId Identifies the WebView in every call to the native side.
Dart only
AdvancedWebViewController.ready Completes once the native WebView exists.
Dart only
AdvancedWebViewController.isDisposed Whether dispose() has been called.
Dart only
AdvancedWebViewController.dispose Destroys the native WebView.
AdvancedWebViewDisplays the WebView owned by a controller as a platform view.
AdvancedWebView.controller The controller whose WebView is displayed. The native factory looks it up by webViewId.
Dart only
AdvancedWebView.gestureRecognizers Forwarded to Flutter's AndroidView / UiKitView.
Dart only
AdvancedWebView.viewType Platform view type registered by AdvancedWebViewFactory on both platforms.
Dart only
Loading and history
AdvancedWebViewController.loadUrl Loads a URL with optional request headers.
AdvancedWebViewController.loadHtmlString Loads an HTML string with an optional base URL.
AdvancedWebViewController.loadRequest Loads a URL with an explicit method (GET or POST), headers and a POST body.
Android PartialA POST is sent as application/x-www-form-urlencoded and cannot carry custom headers; passing headers throws unsupported.
WebViewHttpMethodThe HTTP method of loadRequest: get or post.
AdvancedWebViewController.loadFlutterAsset Loads a Flutter asset declared in pubspec.yaml.
Android SupportedServed from https://appassets.androidplatform.net/assets/, so allowFileAccess is not needed. A missing asset loads as a 404.
iOS SupportedThe page can read the asset's folder. A missing asset throws not-found.
AdvancedWebViewController.loadFile Loads a file from the device by absolute path.
Android PartialNeeds AndroidWebViewSettings.allowFileAccess; otherwise throws file-access-disabled.
iOS SupportedThe page can read the file's folder. A missing file throws not-found.
AdvancedWebViewController.reload Reloads the current page.
AdvancedWebViewController.stopLoading Stops the current load.
AdvancedWebViewController.goBack Navigates back in the history.
AdvancedWebViewController.goForward Navigates forward in the history.
AdvancedWebViewController.canGoBack Whether there is a previous history entry.
AdvancedWebViewController.canGoForward Whether there is a next history entry.
AdvancedWebViewController.currentUrl The URL of the current page.
AdvancedWebViewController.title The title of the current page.
AdvancedWebViewController.takeScreenshot Captures the visible area of the WebView as a PNG.
AdvancedWebViewController.createPdf Renders the current page to a PDF and returns its bytes.
Android Supported
WebView.createPrintDocumentAdapter(String) PrintDocumentAdapter.onLayout(PrintAttributes, PrintAttributes, CancellationSignal, PrintDocumentAdapter.LayoutResultCallback, Bundle) PrintDocumentAdapter.onWrite(PageRange[], ParcelFileDescriptor, CancellationSignal, PrintDocumentAdapter.WriteResultCallback)
Laid out on A4 pages with the page's print styles, written to a temporary file. The helper lives in the android.print package because the callback constructors are package-private.iOS SupportedOne page as tall as the whole content, with the screen styles.
AdvancedWebViewController.findText Finds text in the page and highlights a match; repeating the query moves to the next or previous match.
Android Supported
iOS PartialWebKit only reports whether a match was found, so matchCount counts the query in the page text (callAsyncJavaScript) and activeMatchIndex follows the search direction. Both are best-effort.
AdvancedWebViewController.clearMatches Removes the highlights left by findText.
iOS SupportedClears the selection with window.getSelection().removeAllRanges().
AdvancedWebViewController.printPage Opens the system print dialog for the current page.
Android Supported
WebView.createPrintDocumentAdapter(String) PrintManager.print(String, PrintDocumentAdapter, PrintAttributes)
Needs the Activity the platform view is shown in.AdvancedWebViewController.saveState Saves the back/forward history and scroll position as opaque bytes.
AdvancedWebViewController.restoreState Restores bytes from saveState; returns false when they cannot be read.
AdvancedWebViewController.scrollTo Scrolls the page to an absolute offset in logical pixels, without animation.
AdvancedWebViewController.scrollBy Scrolls the page by a relative offset in logical pixels, without animation.
AdvancedWebViewController.pause Pauses the page's background activity, for example while another screen covers the WebView.
Android SupportedPauses animations, geolocation and plugins. JavaScript timers keep running unless pauseTimers is called too.
iOS SupportedWebKit has no general pause, so only media playback is suspended.
AdvancedWebViewController.resume Undoes pause.
iOS SupportedMedia that was playing before pause stays paused until the page plays it again.
AdvancedWebViewController.pauseTimers Pauses layout, parsing and JavaScript timers of every WebView in the app.
iOS Not supportedWKWebView has no equivalent; the call does nothing.
AdvancedWebViewController.resumeTimers Undoes pauseTimers.
iOS Not supportedWKWebView has no equivalent; the call does nothing.
AdvancedWebViewController.zoomBy Multiplies the page's zoom scale by a factor.
Android SupportedThe factor is clamped to the 0.01 to 100 range that WebView accepts. Needs supportZoom and builtInZoomControls.
iOS SupportedThe scroll view keeps the scale within the page's zoom limits. WKWebView.pageZoom is left to textZoom.
AdvancedWebViewController.setZoomScale Sets the page's zoom scale.
Android SupportedWebView has no absolute setter, so the plugin zooms by the ratio of the target to the current scale.
AdvancedWebViewController.getZoomScale Returns the current zoom scale in logical pixels per CSS pixel.
Android SupportedWebView reports physical pixels per CSS pixel, so the plugin divides by the display density.
AdvancedWebViewController.scrollPosition Returns the current scroll offset in logical pixels.
FindResultWhether the query was found, with the match count and active match (Android).
iOS PartialWebKit does not report a count, so matchCount and activeMatchIndex are null.
JavaScript
AdvancedWebViewController.hitTest Reports the link and image at a point, using document.elementFromPoint.
WebViewHitTestResultThe link and image URLs found by hitTest.
WebViewHitTestTypeWhether hitTest found a link, an image, both or neither.
AdvancedWebViewController.runJavaScript Runs JavaScript and ignores the result.
AdvancedWebViewController.runJavaScriptReturningResult Runs JavaScript and returns its result decoded from JSON.
Android SupportedThe callback already delivers JSON; "null" is mapped to null.
iOS SupportedThe result is encoded to JSON natively; undefined and null become null.
AdvancedWebViewController.javaScriptChannels Named channels the page can call as window.<name>.postMessage(String).
Android SupportedRegistered at creation; the interface object exposes postMessage directly.
iOS SupportedA user script at document start defines window.<name>.postMessage to match Android.
AdvancedWebViewController.javaScriptHandlers Named handlers the page can call as window.advanced_webview.callHandler(name, ...args); the Dart return value resolves the page's promise.
Android SupportedNeeds WEB_MESSAGE_LISTENER and DOCUMENT_START_SCRIPT. A document-start shim turns web messages into promises; replies go back to the frame that asked.
iOS Supported
WKUserContentController.addScriptMessageHandler(_:contentWorld:name:) WKScriptMessageHandlerWithReplyWKUserScript
The reply handler settles the promise; a document-start user script defines window.advanced_webview.AdvancedWebViewController.javaScriptHandlerObjectName Name of the global (window.<name>) that exposes callHandler. Defaults to advanced_webview.
Android SupportedThe document-start shim assigns the global under this name.
Events and navigation
AdvancedWebViewController.onFindResult Reports find progress: the active match index, the match count so far and whether counting is done.
Android SupportedCalled for every update while WebView counts; isDone is false until the last one.
iOS PartialOne final update (isDone is always true) per findText call. The count and index are best-effort because WebKit does not report them.
AdvancedWebViewController.onPageStarted A page started loading.
AdvancedWebViewController.onPageFinished A page finished loading.
AdvancedWebViewController.onProgress Load progress from 0 to 100.
AdvancedWebViewController.onFaviconChanged Reports the favicon URL of each page after it finishes loading.
Android SupportedWebChromeClient.onReceivedIcon only delivers a decoded bitmap, not a URL, so the plugin reads the page's link rel=icon markup instead, which matches iOS.
iOS SupportedWebKit has no public favicon API, so the plugin reads the page's link rel=icon markup.
AdvancedWebViewController.onRenderProcessGone The process that renders web content crashed or was killed by the system.
Android SupportedThe plugin returns true so the app is not terminated; the WebView cannot be used afterwards, so dispose the controller and create a new one. RenderProcessGone.didCrash comes from RenderProcessGoneDetail.didCrash().
iOS SupportedThe view stays blank until you call reload. WebKit does not say whether the process crashed, so RenderProcessGone.didCrash is null.
AdvancedWebViewController.onEnterFullscreen The page (a video or any element) entered fullscreen.
Android SupportedThe plugin covers the Activity's window with the view, hides the system bars and leaves fullscreen on back. It does not change the screen orientation. Without an Activity the request is refused.
iOS SupportedWebKit presents its own fullscreen view; the plugin observes fullscreenState with KVO and enables the element fullscreen API.
AdvancedWebViewController.onExitFullscreen The page left fullscreen.
AdvancedWebViewController.onTitleChanged The page title changed.
AdvancedWebViewController.onLongPress The user long-pressed the page; reports the touch position in logical pixels.
Android Supported
AdvancedWebViewController.onConsoleMessage A console.debug, log, info, warn or error call made by the page.
iOS SupportedA user script wraps console.debug, log, info, warn and error in every frame and posts to a script message handler. WebKit reports no source URL or line number.
WebViewConsoleMessageThe level, text and (Android only) source location of a console call.
iOS SupportedA user script wraps console.debug, log, info, warn and error in every frame and posts to a script message handler. WebKit reports no source URL or line number.
WebViewConsoleMessageLevelWhich console method produced a message: debug, log, info, warning or error.
iOS SupportedA user script wraps console.debug, log, info, warn and error in every frame and posts to a script message handler. WebKit reports no source URL or line number.
AdvancedWebViewController.onScrollChanged The page scrolled; reports the new offset in logical pixels.
AdvancedWebViewController.onWebResourceError A load failed.
Android SupportedAlso reports sub-resource failures (isMainFrame is false).
iOS Partial
WKNavigationDelegate.webView(_:didFail:withError:) WKNavigationDelegate.webView(_:didFailProvisionalNavigation:withError:)
Main-frame failures only; cancelled navigations (NSURLErrorCancelled) are not reported.PermissionRequestThe origin and resources a page asks for.
PermissionResourceCamera, microphone or geolocation.
PermissionDecisionWhether to grant or deny a permission request.
AdvancedWebViewController.onHttpError A server answered with an HTTP status of 400 or more.
Android SupportedAlso reports sub-resources (isMainFrame is false).
iOS PartialMain page and iframes only; WebKit does not expose the status of sub-resources.
HttpErrorThe URL, status code and frame of an HTTP error response.
RenderProcessGoneWhether the renderer crashed (didCrash) when the render process ended.
iOS SupportedWebKit does not say; didCrash is null.
WebResourceErrorA load error reported by the native WebView.
Android SupportederrorCode is a WebViewClient.ERROR_* value.
AdvancedWebViewController.onPermissionRequest Decides whether a page may use the camera, microphone or location. Without a callback every request is denied.
Android Supported
WebChromeClient.onPermissionRequest(PermissionRequest) WebChromeClient.onGeolocationPermissionsShowPrompt(String, GeolocationPermissions.Callback)
After Dart allows a request, the plugin also asks for the Android runtime permission (CAMERA, RECORD_AUDIO, ACCESS_FINE_LOCATION); the request is denied if the user refuses. Protected media and MIDI are always denied.iOS PartialCamera and microphone only. WebKit has no delegate for geolocation, so it asks the user itself and the callback is never called for it.
AdvancedWebViewController.onJsDialog Answers JavaScript alert, confirm and prompt dialogs. Without a callback the platform default is shown.
Android Supported
WebChromeClient.onJsAlert(WebView, String, String, JsResult) WebChromeClient.onJsConfirm(WebView, String, String, JsResult) WebChromeClient.onJsPrompt(WebView, String, String, String, JsPromptResult)
Without a callback the callbacks return false and the system WebView shows its own dialog.iOS Supported
WKUIDelegate.webView(_:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:) WKUIDelegate.webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:) WKUIDelegate.webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:completionHandler:)
WebKit dismisses dialogs silently without this delegate, so without a callback the plugin presents a UIAlertController.JsDialogRequestThe kind, message, page URL and default text of a JavaScript dialog.
JsDialogResponseHow the app answered a JavaScript dialog: accept (with prompt text) or dismiss.
JsDialogTypeWhether the dialog is an alert, a confirm or a prompt.
AdvancedWebViewController.onInterceptRequest Answers requests to the schemes in interceptSchemes with data made up in Dart, or lets them through.
Android SupportedWorks for every scheme, including http and https. WebView calls it on an IO thread and needs the answer synchronously, so that thread waits (up to 10 seconds) while the main thread asks Dart. A null answer, an error or a timeout loads the request from the network.
iOS Partial
WKURLSchemeHandler.webView(_:start:) WKURLSchemeHandler.webView(_:stop:) WKWebViewConfiguration.setURLSchemeHandler(_:forURLScheme:)
Custom schemes only. WebKit does not let apps handle http, https, file, data and other built-in schemes (WKWebView.handlesURLScheme), so those entries are ignored. A custom scheme has no network behind it, so a null answer or an error fails the request.AdvancedWebViewController.interceptSchemes The URL schemes whose requests are passed to onInterceptRequest.
Android SupportedThe scheme of each request is compared with this list inside shouldInterceptRequest.
iOS PartialRegistered when the WebView is created; built-in schemes are skipped.
InterceptedRequestThe URL, method, headers and main-frame flag of an intercepted request. Bodies are not available.
Android Supported
iOS SupportedisMainFrame compares URLRequest.mainDocumentURL with the request URL.
InterceptResponseA response made up by the app: body bytes, MIME type, status and headers.
Android SupportedRedirect statuses (300 to 399) are not supported by WebResourceResponse; such an answer lets the request through.
AdvancedWebViewController.onDownloadStart Called when the page starts a download. The WebView does not save the file.
Android SupportedThe file name is always guessed from the URL and Content-Disposition.
iOS Supported
WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) WKNavigationResponse.canShowMIMEType WKNavigationAction.shouldPerformDownload
Attachments and unshowable types are detected on the response, download links on the action; the navigation is cancelled. The file name can be null for download links.DownloadRequestThe URL, file name, MIME type and size of a download.
AdvancedWebViewController.onSslError Decides what to do about a certificate problem. Without a callback the load is refused.
Android Supported
iOS Supported
WKNavigationDelegate.webView(_:didReceive:completionHandler:) SecTrustEvaluateWithError(_:_:) URLCredential(trust:)
Only called after the system's own trust evaluation failed.AdvancedWebViewController.onHttpAuthRequest Supplies credentials for HTTP Basic, Digest or NTLM authentication, or cancels with null.
Android Supported
WebViewClient.onReceivedHttpAuthRequest(WebView, HttpAuthHandler, String, String) HttpAuthHandler.proceed(String, String) HttpAuthHandler.cancel()
Without a callback the request is cancelled.iOS Supported
WKNavigationDelegate.webView(_:didReceive:completionHandler:) URLCredential(user:password:persistence:)
Without a callback the system default handling runs, which also fails the request. Proxy authentication is left to the system.AdvancedWebViewController.onClientCertRequest Answers a server's request for a client certificate (mutual TLS) with a PKCS#12 identity, cancels it or continues without one.
Android Supported
WebViewClient.onReceivedClientCertRequest(WebView, ClientCertRequest) ClientCertRequest.proceed(PrivateKey, X509Certificate[]) ClientCertRequest.cancel() ClientCertRequest.ignore() KeyStore.getInstance(String)
Without a callback the request is cancelled. WebView remembers the answer for the host and port for the lifetime of the WebView. The PKCS#12 file is read with the PKCS12 KeyStore.iOS Supported
WKNavigationDelegate.webView(_:didReceive:completionHandler:) SecPKCS12ImportURLCredential(identity:certificates:persistence:)
Ignore maps to the system default handling. Without a callback the system default handling runs. The realm is URLProtectionSpace.realm.ClientCertRequestThe host, port and (iOS only) realm of a client certificate request.
ClientCertActionWhether to proceed with a certificate, cancel the request or continue without a certificate.
Android Supported
ClientCertResponseThe answer to a client certificate request: proceed with a PKCS#12 file and its password, cancel, or ignore.
Android Supported
SslErrorThe URL, host and description of a certificate problem.
SslErrorDecisionWhether to proceed despite a certificate problem or cancel the load.
HttpAuthRequestThe host and realm of an authentication request.
HttpAuthCredentialsA user name and password for an authentication request.
AdvancedWebViewController.onNewWindow Called when the page asks for a new window (window.open, target="_blank").
Android Supported
WebChromeClient.onCreateWindow(WebView, boolean, boolean, Message) WebSettings.setSupportMultipleWindows(boolean)
The URL is read from a temporary WebView that is destroyed right away. Without a callback, multiple windows stay off and the URL loads in the same WebView.iOS SupportedAlways returns nil; without a callback the request is loaded in the same WKWebView.
Settings
WebViewSettingsImmutable per-WebView settings.
AdvancedWebViewController.settings The settings last applied.
Dart only
AdvancedWebViewController.updateSettings Applies new settings to a live WebView.
iOS PartialCreation-only settings are ignored here; see each setting.
WebViewSettings.android Android-only settings (AndroidWebViewSettings); iOS ignores them.
iOS Not supportedNot applicable on iOS.
WebViewSettings.ios iOS-only settings (IOSWebViewSettings); Android ignores them.
Android Not supportedNot applicable on Android.
WebViewSettings.javaScriptEnabled Enables JavaScript in the page.
WebViewSettings.mediaPlaybackRequiresUserGesture Requires a user gesture to start media playback.
iOS Creation onlyOnly read when the WebView is created.
IOSWebViewSettings.allowsInlineMediaPlayback Plays video inline instead of full screen.
Android Not supportedAndroid always plays inline.
iOS Creation onlyOnly read when the WebView is created.
AndroidWebViewSettings.supportZoom Allows pinch-to-zoom.
iOS Not supportedZoom is controlled by the page's viewport meta tag.
AndroidWebViewSettings.builtInZoomControls Enables the gestures of the built-in zoom mechanism (pinch and double tap). Android needs it together with supportZoom.
iOS Not supportedZoom is controlled by the page's viewport meta tag.
AndroidWebViewSettings.displayZoomControls Shows the on-screen + / - zoom buttons (off by default).
iOS Not supportediOS has no on-screen zoom buttons.
WebViewSettings.transparentBackground Makes the WebView background transparent.
AndroidWebViewSettings.passkeysEnabled Enables WebAuthn / passkeys for web content (Android).
Android Supported
WebViewFeature.isFeatureSupported(WEB_AUTHENTICATION) WebSettingsCompat.setWebAuthenticationSupport(WEB_AUTHENTICATION_SUPPORT_FOR_APP) WebSettingsCompat.setWebAuthenticationSupport(WEB_AUTHENTICATION_SUPPORT_NONE)
Needs Digital Asset Links for the site's domain. Updates select FOR_APP when enabled and NONE when disabled. Ignored when the installed WebView does not support WebAuthn.iOS Not supportedWKWebView supports passkeys when the app has the Associated Domains webcredentials entitlement for the site's domain.
WebViewSettings.inspectable Allows the page to be inspected with Safari Web Inspector or chrome://inspect.
Android SupportedProcess-wide: it applies to every WebView in the app, and the latest value set wins.
WebViewSettings.textZoom Text size as a percentage (100 is normal).
WebViewCacheModeThe values accepted by WebViewSettings.cacheMode.
Android Supported
AndroidWebViewSettings.domStorageEnabled Lets pages use localStorage and sessionStorage (Android).
iOS Not supportedWKWebView always allows DOM storage.
AndroidWebViewSettings.allowFileAccess Lets the WebView reach file:// URLs (Android, off by default).
iOS Not supportedNo equivalent switch on iOS.
AndroidWebViewSettings.allowContentAccess Lets the WebView load content:// URLs (Android, off by default).
iOS Not supportedNo equivalent on iOS.
AndroidWebViewSettings.mixedContentMode Controls HTTP content on HTTPS pages (Android, blocked by default).
iOS Not supportedWebKit blocks mixed content and has no setting.
WebViewMixedContentModeThe values accepted by WebViewSettings.mixedContentMode.
Android Supported
iOS Not supportedNot applicable on iOS.
WebViewContentModeThe values accepted by IOSWebViewSettings.contentMode.
Android Not supportedNot applicable on Android.
AndroidWebViewSettings.geolocationEnabled Lets pages use navigator.geolocation (Android, on by default).
iOS Not supportediOS has no switch; location access is decided by the system permission.
AndroidWebViewSettings.safeBrowsingEnabled Checks pages against Google's list of dangerous sites (Android, on by default).
Android SupportedNeeds Android 8.0 (API 26) or later; ignored on older versions.
iOS Not supportediOS has no switch; WebKit's fraudulent website warning is always on.
AndroidWebViewSettings.algorithmicDarkeningAllowed Lets the WebView darken pages without a dark theme while the app theme is dark (Android, off by default).
Android SupportedNeeds a WebView that supports ALGORITHMIC_DARKENING; otherwise the setting has no effect.
iOS Not supportediOS has no equivalent; use IOSWebViewSettings.userInterfaceStyle to change prefers-color-scheme.
IOSWebViewSettings.userInterfaceStyle Forces the light or dark appearance, which decides prefers-color-scheme for pages (iOS).
Android Not supportedAndroid has no equivalent; see AndroidWebViewSettings.algorithmicDarkeningAllowed.
WebViewUserInterfaceStyleThe values accepted by IOSWebViewSettings.userInterfaceStyle.
Android Not supportedNot applicable on Android.
IOSWebViewSettings.incognito Keeps cookies, cache and storage in memory only (iOS).
Android Not supportedAndroid's WebView shares cookies, cache and storage across the app, so it cannot be isolated per WebView.
iOS Creation onlyApplied when the WebView is created; changing it later has no effect.
IOSWebViewSettings.applicationNameForUserAgent Appends a token to the default user agent without replacing it (iOS).
Android Not supportedAndroid has no equivalent; use WebViewSettings.userAgent to replace the whole string.
iOS Creation onlyApplied when the WebView is created; changing it later has no effect. Ignored while WebViewSettings.userAgent is set.
IOSWebViewSettings.contentMode Asks sites for their mobile or desktop version: recommended, mobile or desktop (iOS).
Android Not supportedAndroid has no equivalent; use WebViewSettings.userAgent to request a desktop site.
IOSWebViewSettings.allowsLinkPreview Shows the link preview when the user presses and holds a link (iOS).
Android Not supportedAndroid has no equivalent.
WebViewSettings.cacheMode How loads use the HTTP cache: normal, preferCache, cacheOnly or noCache.
Android Supported
iOS PartialApplied to requests started with loadUrl; link taps and subresources use the default policy.
WebViewSettings.javaScriptCanOpenWindowsAutomatically Lets scripts call window.open without a user gesture.
WebViewSettings.scrollbarsVisible Shows scroll bars (Android) or scroll indicators (iOS).
Android Supported
WebViewSettings.overScrollEnabled Allows scrolling past the content edge (stretch on Android, bounce on iOS).
WebViewSettings.pullToRefreshEnabled Reloads the page when the user pulls down from the top.
Android SupportedThe platform view is a SwipeRefreshLayout that contains the WebView.
iOS SupportedThe pull is a bounce, so overScrollEnabled must stay on.
WebViewSettings.minimumFontSize Smallest font size the WebView renders. null uses the platform default.
WebViewSettings.userAgent Overrides the user agent. null uses the platform default.
Cookies
AdvancedWebViewController.clearWebsiteData Clears the HTTP cache, local and session storage and IndexedDB. Cookies are not included.
Android PartiallocalStorage and IndexedDB cannot be cleared separately: either one clears all DOM storage of the app.
WebsiteDataTypeThe kind of website data to clear: cache, localStorage or IndexedDB.
Android PartiallocalStorage and indexedDb both map to WebStorage.deleteAllData(), which clears all DOM storage.
User scripts
UserScriptJavaScript injected into every page the WebView loads.
Android SupportedDocument-start scripts run in all frames; the plugin wraps the source for main-frame-only and document-end scripts.
UserScriptInjectionTimeWhen a user script runs while a page loads.
Android SupportedatDocumentEnd waits for DOMContentLoaded.
AdvancedWebViewController.addUserScript Registers a user script for pages loaded from now on.
Android SupportedNeeds a WebView with DOCUMENT_START_SCRIPT support.
AdvancedWebViewController.removeAllUserScripts Removes every registered user script.
AdvancedWebViewController.userScripts Constructor parameter: scripts registered before the first load.
In-app browser
AdvancedInAppBrowserA full-screen browser with a toolbar, shown over the Flutter UI. It hosts a WebView created like an AdvancedWebViewController, so loading, JavaScript and page events use the same native calls.
Android SupportedA dedicated InAppBrowserActivity registered in the plugin manifest; the back button goes back in the page first. Needs the host Activity.
iOS Supported
UIViewController.present(_:animated:completion:) UIViewController.dismiss(animated:completion:) UINavigationController
Presented modally full screen from the top view controller of the foreground scene.InAppBrowserOptionsToolbar colour, title, URL and navigation buttons, close button label, and the WebView settings of the browser.
Android SupportedColour, title and subtitle are set on the Toolbar; buttons are text menu items.
iOS SupportedColour is applied through UINavigationBarAppearance; the buttons are in the bottom toolbar.
AdvancedSystemBrowserOpens a page in the system's own browser UI (Chrome Custom Tabs, SFSafariViewController), with the user's cookies and passkeys, for sign-in flows that should not run in an embedded WebView.
Android PartialFalls back to a plain browser when no Custom Tabs provider is installed. Custom Tabs report nothing when they close, so onClosed fires when the app comes back to the foreground (best effort).
iOS SupportedPresented modally from the top view controller of the foreground scene. Always available.
SystemBrowserOptionsThe toolbar colour of the system browser.