Releases: pichillilorenzo/flutter_inappwebview
Releases · pichillilorenzo/flutter_inappwebview
v6.0.0-rc.2
- Updated minimum platform interface and implementation versions
- Added
CustomPathHandler
class to be able to implement Android custom path handlers forWebViewAssetLoader
v6.0.0-rc.1
- Updated minimum platform interface and implementation versions
- Added
InAppBrowser.onMainWindowWillClose
event - Added
WindowType.WINDOW
forInAppBrowserSettings.windowType
- Fixed "Cloudflare Turnstile failure" #1738
- Fixed
InAppWebViewController.callAsyncJavaScript
Android-issue when the last line of thefunctionBody
parameter includes a code comment
BREAKING CHANGES
- Default value of
InAppBrowserSettings.windowType
isWindowType.WINDOW
v6.0.0-beta.32
- Updated minimum platform interface and implementation versions
- Added
InAppWebViewSettings.interceptOnlyAsyncAjaxRequests
#1905 - Added
InAppWebViewController.clearFormData
Android-specific method - Added
InAppWebViewController.clearAllCache
static method - Added
CookieManager.removeSessionCookies
Android-specific method - Deprecated
InAppWebViewController.clearCache
andInAppWebViewSettings.clearCache
. UseInAppWebViewController.clearAllCache
static method instead - Deprecated
InAppWebViewSettings.clearSessionCache
. UseCookieManager.removeSessionCookies
method instead - Updated
useShouldInterceptAjaxRequest
automatic infer logic - Updated
CookieManager
methods return value - Fixed "iOS crash at public func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage)" #1912
- Fixed "iOS Fatal Crash" #1894
- Fixed "getFavicons: _TypeError: type '_Map<String, dynamic>' is not a subtype of type 'Iterable'" #1897
- Fixed error in InterceptAjaxRequestJS 'Failed to set responseType property'
- Fixed shouldInterceptAjaxRequest javascript code when overriding XMLHttpRequest.open method parameters
- Fixed "onClosed not considering back navigation or up button / close button in ChromeSafariBrowser when using noHistory: true" #1882
- Merged "Fixed error in InterceptAjaxRequestJS 'Failed to set responseType property'" #1904 (thanks to EArminjon)
BREAKING CHANGE
- Due to Flutter platform channels async nature, using
useShouldInterceptAjaxRequest: true
would break sync ajax requests, so that theXMLHttpRequest.send()
will not wait for the response. To fix this issue, the default value ofInAppWebViewSettings.interceptOnlyAsyncAjaxRequests
istrue
. To intercept also sync ajax requests, this value should befalse
.
v6.0.0-beta.31
- Updated minimum platform interface and implementation versions
- Fixed events not called on
InAppBrowser
andChromeSafariBrowser
opening same instance multiple times
v6.0.0-beta.30
- Updated minimum platform interface and implementation versions
- Fixed "Crash when starting ChromeSafariBrowser on Android java.lang.NoSuchMethodError: No virtual method isEngagementSignalsApiAvailable" #1881
v6.0.0-beta.29
BREAKING CHANGES
- Plugin conversion to a Federated Plugin to better support multiple environments and implementations.
- Dart SDK min version
>= 2.17.0
- Android package name has been changed to
com.pichillilorenzo.flutter_inappwebview_android
. References to old package namecom.pichillilorenzo.flutter_inappwebview
should be updated, for example insideAndroidManifest.xml
file:<provider android:name="com.pichillilorenzo.flutter_inappwebview_android.InAppWebViewFileProvider" android:authorities="${applicationId}.flutter_inappwebview_android.fileprovider" ...
- Web Platform:
web_support.js
file path has been changed topackages/flutter_inappwebview_web/assets/web/web_support.js
v6.0.0-beta.28
- Added
ProcessGlobalConfig
for Android WebViews - Added
disableWebView
static method onInAppWebViewController
for Android - Added support for Android
WebViewFeature.isStartupFeatureSupported
,WebViewFeature.STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS
,WebViewFeature.STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX
,WebViewFeature.WEB_MESSAGE_ARRAY_BUFFER
- Added
WebMessage.type
property - Fixed "iOS EXC_BAD_ACCESS crash on kill app with InAppWebView keyboard open" #1837
- Fixed "Flutter Web - TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. error" #1841
BREAKING CHANGES
WebMessage.data
property is of typedynamic
JavaScriptReplyProxy.postMessage
is of typeWebMessage
WebMessageListener.onPostMessage
andWebMessagePort.setWebMessageCallback
methods signature
v6.0.0-beta.27
- Added
requestPostMessageChannel
,postMessage
,isEngagementSignalsApiAvailable
methods onChromeSafariBrowser
for Android - Added
onMessageChannelReady
,onPostMessage
,onVerticalScrollEvent
,onGreatestScrollPercentageIncreased
,onSessionEnded
events onChromeSafariBrowser
for Android - Added
getPackageName
static method onChromeSafariBrowser
for Android
v6.0.0-beta.26
- Throw an error if any controller is used after being disposed
CookieManager.deleteCookies
wait for all delete cookie completion handler to be completed on iOS and macOS- Updated return value for
CookieManager.setCookie
method to beFuture<bool>
. The return value indicates whether the cookie was set successfully - Merged "feat(ios): optional tradeoff to fix ios input delay" #1665 (thanks to andreasgangso)
- Merged "Fix ios multiple flutter presenting error" #1736 (thanks to AlexT84)
- Merged "fix cert parsing for ios 12" #1822 (thanks to darkang3lz92)
- Merged "Fix iOS and macOS Forced unwrap null value HTTPCookie for CookieManager.setCookie" #1677 (thanks to maxmitz)
- Merged "android imm.isAcceptingText() crash fix" #1827 (thanks to AlexDochioiu)
- Merged "fix: chrome tab open failed due to chrome process not running" #1772 (thanks to YumengNevix)
- Merged "Android - Fix context menu position for pages with horizontal scroll" #1504 (thanks to lrorpilla)
- Fixed "iOS about:blank popup not loading page" #1500
- Fixed "iOS macOS - This method should not be called on the main thread as it may lead to UI unresponsiveness" #1678
- Fixed iOS and macOS InAppWebView memory leaks
v6.0.0-beta.25
- Updated
androidx.webkit:webkit
dependency to1.8.0
- Updated
androidx.browser:browser
dependency to1.6.0
- Merged "feat: InAppLocalhostServer decode assets url when loading them" #1657 (thanks to Nirajn2311)
- Merged "fix: xcode 15 related bug" #1801 (thanks to nesquikm)