Releases: pichillilorenzo/flutter_inappwebview
Releases · pichillilorenzo/flutter_inappwebview
v6.2.0-beta.2
- 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 andtoMap
method implementations - Updated all WebView events with return type
Future
to typeFutureOr
in order to not force the usage ofasync
keyword - Added
byName
,name
,asNameMap
custom enum classes methods - Added
statusBarEnabled
,browserAcceleratorKeysEnabled
,generalAutofillEnabled
,passwordAutosaveEnabled
,isPinchZoomEnabled
,hiddenPdfToolbarItems
,reputationCheckingRequired
,nonClientRegionSupportEnabled
,alpha
,isUserInteractionEnabled
properties toInAppWebViewSettings
- Added
isInterfaceSupported
,getProcessInfos
,getFailureReportFolderPath
methods toPlatformWebViewEnvironment
class - Added
isInterfaceSupported
,setInputMethodEnabled
,hideInputMethod
,showInputMethod
methods toPlatformInAppWebViewController
class - Added
exclusiveUserDataFolderAccess
,isCustomCrashReportingEnabled
,enableTrackingPrevention
,areBrowserExtensionsEnabled
,channelSearchKind
,releaseChannels
,scrollbarStyle
properties toWebViewEnvironmentSettings
- Added
onDownloadStarting
WebView event and deprecatedonDownloadStartRequest
event - Added
onNewBrowserVersionAvailable
,onBrowserProcessExited
,onProcessInfosChanged
events toPlatformWebViewEnvironment
class - Fixed missing PrintJobOrientation android values
Android Platform
- Implemented
hideInputMethod
,showInputMethod
InAppWebViewController methods - Implemented
isUserInteractionEnabled
,alpha
properties ofInAppWebViewSettings
- 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 ofInAppWebViewSettings
- 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 ofInAppWebViewSettings
Windows Platform
- Updated Microsoft.Web.WebView2 SDK version from
1.0.2792.45
to1.0.2849.39
- Implemented
disableDefaultErrorPage
,statusBarEnabled
,browserAcceleratorKeysEnabled
,generalAutofillEnabled
,passwordAutosaveEnabled
,isPinchZoomEnabled
,allowsBackForwardNavigationGestures
,hiddenPdfToolbarItems
,reputationCheckingRequired
,nonClientRegionSupportEnabled
properties ofInAppWebViewSettings
- 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 ofWebViewEnvironmentSettings
- 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
- 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 toInAppWebViewSettings
- Added
JavaScriptHandlerFunctionData
type - Deprecated
JavaScriptHandlerCallback
type in favor ofJavaScriptHandlerFunction
type - Deprecated
InAppWebViewSettings.forceDark
andInAppWebViewSettings.forceDarkStrategy
Android-only properties in favor ofInAppWebViewSettings.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 whenInAppWebViewController.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 onpreWKWebViewConfiguration
to fix possibleundefined 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 andhidden
setting forInAppBrowser
- 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
andUserScript.forMainFrameOnly
parameters - Implemented
onReceivedHttpAuthRequest
,onReceivedClientCertRequest
,onReceivedServerTrustAuthRequest
,onRenderProcessGone
,onRenderProcessUnresponsive
,onWebContentProcessDidTerminate
,onProcessFailed
WebView events - Implemented
clearSslPreferences
WebView method - Fixed
get_optional_fl_map_value
implementation inutils/flutter.h
- Fixed "Error in transparentBackground handling in Windows" #2391
Web Platform
v6.1.5
- 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
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
- 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
- Updated minimum platform implementation versions
Windows Platform
- Implemented
pause
,resume
,getCertificate
methods forInAppWebViewController
- 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
- Updated README
- Updated pubspec.yaml
- Updated minimum platform implementation versions
v6.1.0
- 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
- Updated minimum platform interface and implementation versions
- Merged "Added == operator and hashCode to WebUri" #1941 (thanks to daisukeueta)
v6.0.0-rc.3
- 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)