Skip to content

Releases: pichillilorenzo/flutter_inappwebview

v6.2.0-beta.2

26 Nov 21:06
Compare
Choose a tag to compare
  • Updated dependencies to the latest versions for all platform implementations:
    • flutter_inappwebview_platform_interface: ^1.4.0-beta.1 -> ^1.4.0-beta.2
    • flutter_inappwebview_android: ^1.2.0-beta.1 -> ^1.2.0-beta.2
    • flutter_inappwebview_ios: ^1.2.0-beta.1 -> ^1.2.0-beta.2
    • flutter_inappwebview_macos: ^1.2.0-beta.1 -> ^1.2.0-beta.2
    • flutter_inappwebview_web: ^1.2.0-beta.1 -> ^1.2.0-beta.2
    • flutter_inappwebview_windows: ^0.7.0-beta.1 -> ^0.7.0-beta.2
  • Fixed specific URLAuthenticationChallenge type for onReceivedHttpAuthRequest, onReceivedServerTrustAuthRequest, onReceivedClientCertRequest events of HeadlessInAppWebView
  • Fixed missing return type for InAppWebViewController.getJavaScriptBridgeName static method

Platform Interface

  • Updated flutter_inappwebview_internal_annotations dependency from ^1.1.1 to ^1.2.0
  • Updated fromMap static method and toMap method implementations
  • Updated all WebView events with return type Future to type FutureOr in order to not force the usage of async keyword
  • Added byName, name, asNameMap custom enum classes methods
  • Added statusBarEnabled, browserAcceleratorKeysEnabled, generalAutofillEnabled, passwordAutosaveEnabled, isPinchZoomEnabled, hiddenPdfToolbarItems, reputationCheckingRequired, nonClientRegionSupportEnabled, alpha, isUserInteractionEnabled properties to InAppWebViewSettings
  • Added isInterfaceSupported, getProcessInfos, getFailureReportFolderPath methods to PlatformWebViewEnvironment class
  • Added isInterfaceSupported, setInputMethodEnabled, hideInputMethod, showInputMethod methods to PlatformInAppWebViewController class
  • Added exclusiveUserDataFolderAccess, isCustomCrashReportingEnabled, enableTrackingPrevention, areBrowserExtensionsEnabled, channelSearchKind, releaseChannels, scrollbarStyle properties to WebViewEnvironmentSettings
  • Added onDownloadStarting WebView event and deprecated onDownloadStartRequest event
  • Added onNewBrowserVersionAvailable, onBrowserProcessExited, onProcessInfosChanged events to PlatformWebViewEnvironment class
  • Fixed missing PrintJobOrientation android values

Android Platform

  • Implemented hideInputMethod, showInputMethod InAppWebViewController methods
  • Implemented isUserInteractionEnabled, alpha properties of InAppWebViewSettings
  • Merged "Show / Hide / Disable / Enable soft Keyboard Input (Android & iOS)" #2408 (thanks to Mecharyry)
  • Fixed "[Android] PrintJobOrientation _TypeError (type 'Null' is not a subtype of type 'int')" #2413
  • Fixed "Accessibility Android" #1694
  • Fixed "Automatic font scale according to accessibility option 'font size' of device does not work on Android" #540
  • Fixed "callHandler method is not injected into InAppBrowser" #1973

iOS Platform

  • Implemented setInputMethodEnabled, hideInputMethod InAppWebViewController methods
  • Implemented isUserInteractionEnabled, alpha properties of InAppWebViewSettings
  • Merged "Show / Hide / Disable / Enable soft Keyboard Input (Android & iOS)" #2408 (thanks to Mecharyry)
  • Fixed "In iOS version 17.2, when moving the input focus in a WebView, an unknown area appears at the top of the screen." #1947

macOS Platform

  • Implemented alpha property of InAppWebViewSettings

Windows Platform

  • Updated Microsoft.Web.WebView2 SDK version from 1.0.2792.45 to 1.0.2849.39
  • Implemented disableDefaultErrorPage, statusBarEnabled, browserAcceleratorKeysEnabled, generalAutofillEnabled, passwordAutosaveEnabled, isPinchZoomEnabled, allowsBackForwardNavigationGestures, hiddenPdfToolbarItems, reputationCheckingRequired, nonClientRegionSupportEnabled properties of InAppWebViewSettings
  • Implemented isInterfaceSupported, getProcessInfos, getFailureReportFolderPath WebViewEnvironment methods
  • Implemented isInterfaceSupported, getZoomScale InAppWebViewController method
  • Implemented onDownloadStarting, onAcceleratorKeyPressed WebView event
  • Implemented exclusiveUserDataFolderAccess, isCustomCrashReportingEnabled, enableTrackingPrevention, areBrowserExtensionsEnabled, channelSearchKind, releaseChannels, scrollbarStyle properties of WebViewEnvironmentSettings
  • Implemented onNewBrowserVersionAvailable, onBrowserProcessExited, onProcessInfosChanged WebViewEnvironment events
  • Send mouse leave region event to native view
  • Fixed wrong channel name when creating a WebViewEnvironment instance
  • Fixed "[Windows] Has an overlay on the desktop when the application is minimized" #2402
  • Fixed "[Windows] missing implementation of onPermissionRequest event will cause crash when requested by the webpage" #2404
  • Fixed "Windows: getCookies return empty list" #2314

v6.2.0-beta.1

05 Nov 16:03
Compare
Choose a tag to compare
  • Updated dependencies to the latest versions for all platform implementations:
    • flutter_inappwebview_platform_interface: ^1.3.0 -> ^1.4.0-beta.1
    • flutter_inappwebview_android: ^1.1.3 -> ^1.2.0-beta.1
    • flutter_inappwebview_ios: ^1.1.2 -> ^1.2.0-beta.1
    • flutter_inappwebview_macos: ^1.1.2 -> ^1.2.0-beta.1
    • flutter_inappwebview_web: ^1.1.2 -> ^1.2.0-beta.1
    • flutter_inappwebview_windows: ^0.6.0 -> ^0.7.0-beta.1

Implemented security features to better manage access to the native javascript bridge.

Platform Interface

  • Updated static fromMap implementation for some classes
  • Updated kJavaScriptHandlerForbiddenNames list
  • Added PlatformInAppLocalhostServer.onData parameter to set a custom on data server callback
  • Added javaScriptBridgeEnabled, javaScriptBridgeOriginAllowList, javaScriptBridgeForMainFrameOnly, pluginScriptsOriginAllowList, pluginScriptsForMainFrameOnly, javaScriptHandlersOriginAllowList, javaScriptHandlersForMainFrameOnly, scrollMultiplier InAppWebViewSettings parameters
  • Added setJavaScriptBridgeName, getJavaScriptBridgeName static WebView controller methods
  • Added requestFocus WebView method
  • Added onProcessFailed WebView event
  • Added regexToAllowSyncUrlLoading Android-specific property to InAppWebViewSettings
  • Added JavaScriptHandlerFunctionData type
  • Deprecated JavaScriptHandlerCallback type in favor of JavaScriptHandlerFunction type
  • Deprecated InAppWebViewSettings.forceDark and InAppWebViewSettings.forceDarkStrategy Android-only properties in favor of InAppWebViewSettings.algorithmicDarkeningAllowed
  • Fixed X509Certificate PEM base64 decoding
  • Fixed specific URLAuthenticationChallenge type for onReceivedHttpAuthRequest, onReceivedServerTrustAuthRequest, onReceivedClientCertRequest events

Android Platform

  • Added InAppWebViewController.enableSlowWholeDocumentDraw static method
  • Added CookieManager.flush method
  • Added support for UserScript.forMainFrameOnly parameter
  • Implemented requestFocus WebView method
  • Updated UserScript at document end implementation
  • Updated InAppWebViewController.takeScreenshot implementation to support screenshot out of visible viewport when InAppWebViewController.enableSlowWholeDocumentDraw is called
  • Fixed "After dispose a InAppWebViewKeepAlive using InAppWebViewController.disposeKeepAlive. NullPointerException is thrown when main activity enter destroyed state." #2025
  • Fixed crash when trying to open InAppBrowser with R.menu.menu_main on release mode
  • Fixed "android.webkit.WebSettingsWrapper cannot be cast to com.android.webview.chromium.ContentSettingsAdapter" #2397
  • Merged "Prevent blank InAppBrowser Activity from being restored" #1984 (thanks to ShuheiSuzuki-07)
  • Merged "Update Android Cookie Expiration date format to 24-hour format (HH)" #2389 (thanks to takuyaaaaaaahaaaaaa)
  • Merged "[Android] allow sync navigation requests using a regular expression" #2008 (thanks to lyb5834)

macOS and iOS Platforms

  • Implemented requestFocus WebView method
  • Updated ConsoleLogJS internal PluginScript to main-frame only as using it on non-main frames could cause issues such as #1738
  • Moved WKUserContentController initialization on preWKWebViewConfiguration to fix possible undefined is not an object (evaluating 'window.webkit.messageHandlers') javascript error
  • Added support for UserScript.allowedOriginRules parameter
  • Merged "change priority of DispatchQueue" #2322 (thanks to nnnlog)
  • ios: Fixed show, hide methods and hidden setting for InAppBrowser
  • macOS: Implemented also clearFocus WebView method
  • macOS: Implemented workaround for "[macOS] Copy Shortcut does not work if TextField outside of WebView has focus" #2380

Windows Platform

  • Updated scrollMultiplier default value from 6 to 1
  • Added support for UserScript.allowedOriginRules and UserScript.forMainFrameOnly parameters
  • Implemented onReceivedHttpAuthRequest, onReceivedClientCertRequest, onReceivedServerTrustAuthRequest, onRenderProcessGone, onRenderProcessUnresponsive, onWebContentProcessDidTerminate, onProcessFailed WebView events
  • Implemented clearSslPreferences WebView method
  • Fixed get_optional_fl_map_value implementation in utils/flutter.h
  • Fixed "Error in transparentBackground handling in Windows" #2391

Web Platform

  • Merged "[web] support iframe role and aria-hidden attributes" 2293 (thanks to p-mazhnik)
  • Fixed 'Type 'int' is not a subtype of type 'JSValue' in type cast' when compiling/running using WASM

v6.1.5

08 Oct 22:12
Compare
Choose a tag to compare
  • Updated dependencies to the latest versions for all platform implementations:
    • flutter_inappwebview_windows: ^0.5.0 -> ^0.6.0

Windows Platform

  • Updated code to support multiple flutter windows
  • Fixed InAppWebViewController.callAsyncJavaScript not working with JSON objects
  • Fixed onLoadResourceWithCustomScheme WebView event called every time

v6.1.4

02 Oct 12:47
Compare
Choose a tag to compare

6.1.4

  • Updated dependencies to the latest versions for all platform implementations:
    • flutter_inappwebview_platform_interface: ^1.2.0 -> ^1.3.0
    • flutter_inappwebview_android: ^1.1.1 -> ^1.1.3
    • flutter_inappwebview_ios: ^1.1.1 -> ^1.1.2
    • flutter_inappwebview_macos: ^1.1.1 -> ^1.1.2
    • flutter_inappwebview_web: ^1.1.1 -> ^1.1.2
    • flutter_inappwebview_windows: ^0.4.0 -> ^0.5.0

Android Platform

  • Removed webview/plugin_scripts_js/ConsoleLogJS.java file, use native WebChromeClient.onConsoleMessage instead

Windows Platform

  • Implemented shouldInterceptRequest, onLoadResourceWithCustomScheme WebView events

v6.1.3

29 Sep 15:18
Compare
Choose a tag to compare
  • Updated dependencies to the latest versions for all platform implementations:
    • flutter_inappwebview_platform_interface: ^1.1.0 -> ^1.2.0
    • flutter_inappwebview_android: ^1.1.0+4 -> ^1.1.1
    • flutter_inappwebview_ios: ^1.1.0+3 -> ^1.1.1
    • flutter_inappwebview_macos: ^1.1.0+3 -> ^1.1.1
    • flutter_inappwebview_web: ^1.1.0+2 -> ^1.1.1
    • flutter_inappwebview_windows: ^0.3.0 -> ^0.4.0

Windows Platform

  • Updated shouldOverrideUrlLoading implementation using the Chrome DevTools Protocol API Fetch.requestPaused event

v6.1.2

27 Sep 23:49
Compare
Choose a tag to compare
  • Updated minimum platform implementation versions

Windows Platform

  • Implemented pause, resume, getCertificate methods for InAppWebViewController
  • Implemented onPermissionRequest WebView event
  • Fixed InAppWebViewController.evaluateJavascript not working with JSON objects
  • Fixed InAppWebViewManager::METHOD_CHANNEL_NAME c++ value
  • Fixed InAppWebViewController.takeScreenshot to behave consistently with the other platforms

v6.1.1

26 Sep 22:50
Compare
Choose a tag to compare
  • Updated README
  • Updated pubspec.yaml
  • Updated minimum platform implementation versions

v6.1.0

23 Sep 12:56
Compare
Choose a tag to compare
  • Added initial Windows support
  • Added InAppWebView widget MacOS support
  • Added privacy manifest for MacOS
  • Migrated web support to package:web.
  • Updated minimum supported SDK version to Flutter 3.24/Dart 3.5.
  • Updated androidx.webkit:webkit:1.8.0 to androidx.webkit:webkit:1.12.0
  • Updated androidx.browser:browser:1.6.0 to androidx.browser:browser:1.8.0
  • Fixed "[MACOS] launching InAppBrowser with 'hidden: true' calls onExit immediately" #1939
  • Fixed XCode 16 build
  • Removed unsupported WebViewFeature.SUPPRESS_ERROR_PAGE
  • Merged "Add privacy manifest for iOS" #2029 (thanks to ueman)
  • Merged "Remove references to deprecated v1 Android embedding" #2176 (thanks to gmackall)

v6.0.0

25 Dec 17:19
Compare
Choose a tag to compare
  • Updated minimum platform interface and implementation versions
  • Merged "Added == operator and hashCode to WebUri" #1941 (thanks to daisukeueta)

v6.0.0-rc.3

23 Dec 15:17
Compare
Choose a tag to compare
  • Updated minimum platform interface and implementation versions
  • Fix typos and other code improvements (thanks to michalsrutek)
  • Fixed "runtime issue of SecTrustCopyExceptions 'This method should not be called on the main thread as it may lead to UI unresponsiveness.' when using onReceivedServerTrustAuthRequest" #1924
  • Merged "💥 Fix iPad crash due to missing sourceView" #1933 (thanks to michalsrutek)
  • Merged "💥 Fix crash - remove force unwrapping from dispose method" #1932 (thanks to michalsrutek)