Releases: pichillilorenzo/flutter_inappwebview
Releases · pichillilorenzo/flutter_inappwebview
v5.0.4-nullsafety.1
- Added
headers
andstatusCode
properties to IOSURLResponse class
v5.0.3-nullsafety.1
- Fixed Android screenshot out of memory error
- Fixed
getFavicons
WebView method
v5.0.2-nullsafety.1
- Fixed missing
verticalScrollbarThumbColor
,verticalScrollbarTrackColor
,horizontalScrollbarThumbColor
,horizontalScrollbarTrackColor
Android-specific WebView options when calling native javasetOptions()
method on Android
v5.0.1-nullsafety.1
- Added
verticalScrollbarThumbColor
,verticalScrollbarTrackColor
,horizontalScrollbarThumbColor
,horizontalScrollbarTrackColor
Android-specific WebView options - Fixed some null types and wrong casting
v5.0.0-nullsafety.0
- Added support for Dart null-safety feature
- Added Android Hybrid Composition support "Use PlatformViewLink widget for Android WebView" #462 (thanks to plateaukao and tneotia)
- Added
allowUniversalAccessFromFileURLs
andallowFileAccessFromFileURLs
WebView options also for iOS (also thanks to liranhao) - Added limited cookies support on iOS below 11.0 using JavaScript
- Added
IOSCookieManager
class andCookieManager.instance().ios.getAllCookies
iOS-specific method - Added
UserScript
,UserScriptInjectionTime
,ContentWorld
,AndroidWebViewFeature
,AndroidServiceWorkerController
,AndroidServiceWorkerClient
,ScreenshotConfiguration
,IOSWKPDFConfiguration
,URLRequest
classes - Added
initialUserScripts
WebView option - Added
addUserScript
,addUserScripts
,removeUserScript
,removeUserScripts
,removeUserScriptsByGroupName
,removeAllUserScripts
,callAsyncJavaScript
,isSecureContext
WebView methods - Added
contentWorld
argument toevaluateJavascript
WebView method - Added
isDirectionalLockEnabled
,mediaType
,pageZoom
,limitsNavigationsToAppBoundDomains
,useOnNavigationResponse
,applePayAPIEnabled
,allowingReadAccessTo
,disableLongPressContextMenuOnLinks
iOS-specific WebView options - Added
handlesURLScheme
,createPdf
,createWebArchiveData
iOS-specific WebView methods - Added
iosOnNavigationResponse
andiosShouldAllowDeprecatedTLS
iOS-specific WebView events - Added
iosAnimated
optional argument tozoomBy
WebView method - Added
screenshotConfiguration
optional argument totakeScreenshot
WebView method - Added
scriptHtmlTagAttributes
optional argument toinjectJavascriptFileFromUrl
WebView method - Added
cssLinkHtmlTagAttributes
optional argument toinjectCSSFileFromUrl
WebView method - Added
iosAllowingReadAccessTo
iOS-specific optional argument toloadUrl
WebView method - Added new iOS-specific attributes to
ShouldOverrideUrlLoadingRequest
andCreateWindowRequest
classes - Added
toolbarTopTranslucent
,toolbarTopTintColor
,toolbarBottomTintColor
,toolbarTopBarTintColor
ios-specific InAppBrowser options - Updated integration tests
- Merge "Upgraded appcompat to 1.2.0-rc-02" #465 (thanks to andreidiaconu)
- Merge "Added missing field 'headers' which returned by WebResourceResponse.toMap()" #490 (thanks to Doflatango)
- Merge "Fix: added iOS fallback module import" #466 (thanks to Eddayy)
- Merge "Fix NullPointerException after taking a photo by a camera app on Android" #492 (thanks to AAkira)
- Merge "iOS CookieManager.getCookies - Check that URL has suffix of cookie do…" #658 (thanks to arneke)
- Merge "Add NTLM Auth" #634 (thanks to albatrosify)
- Merge "iOS ChromeSafariBrowserManager - Fixing unnecessary casting of rootViewController to FlutterViewController" #567 (thanks to gunantosteven)
- Merge "Fix _channel.invokeMethod name for injectCSSFileFromUrl method" #645 (thanks to omralcrt)
- Merge "Add android media intents on wildcard input accept" #620 (thanks to cbodin)
- Merge "Add ChromeSafariBrowser support for Android 11" #538 (thanks to DRSchlaubi)
- Merge "fix(iOS): missing implementation of method zoomBy" #670 (thanks to pcqpcq)
- Merge "[mod] Fix all issues relate to long click in Android version 7.0 (#657, #527)" #671 (thanks to MrNinja)
- Merge "Fix ViewGroup.removeView NullPointerException (#450)" #683 (thanks to toda-bps)
- Fixed missing properties initialization when using InAppWebViewController.fromInAppBrowser
- Fixed "Issue in Flutter web: 'Unsupported operation: Platform._operatingSystem'" #507
- Fixed "window.flutter_inappwebview.callHandler is not a function" #218
- Fixed "Android ContentBlocker - java.lang.NullPointerException ContentBlockerTrigger resource type" #506
- Fixed "Android CookieManager throws error caused by websites that are sending back illegal/invalid cookies." #476
- Fixed missing
clearHistory
webview method implementation on Android - Fixed iOS crash when using CookieManager getCookies for an URL and the host URL is
null
- Fixed "IOS does not support allowUniversalAccessFromFileURLs" #654
- Fixed "Failed to load WebView provider: No WebView installed" #642
- Fixed "java.net.MalformedURLException: unknown protocol: wss - Error using library sipml5 in flutter_inappwebview" #614
- Fixed "Android 10 clipboard not working properly" #678 (thanks to armadastate)
BREAKING CHANGES
- Minimum Flutter version required is
1.22.2
and Dart SDK>=2.12.0-0 <3.0.0
- iOS Xcode version
>= 12
allowUniversalAccessFromFileURLs
andallowFileAccessFromFileURLs
WebView options moved from Android-specific options to cross-platform options- Added
callAsyncJavaScript
name to the list of javaScriptHandlerForbiddenNames - Moved
saveWebArchive
WebView method from Android-specific to cross-platform - Moved
progressBar
InAppBroswer from Android-specific option to cross-platform option and renamed tohideProgressBar
- Renamed
HttpAuthChallenge
toURLAuthenticationChallenge
- Updated
basicConstraints
,subjectKeyIdentifier
,authorityKeyIdentifier
,certificatePolicies
,cRLDistributionPoints
,authorityInfoAccess
attributes type ofX509Certificate
- Updated "WebView.storyboard" for InAppBrowser iOS representation
- Renamed
ShouldOverrideUrlLoadingAction
class toNavigationActionPolicy
- Renamed
ProtectionSpace
class toURLProtectionSpace
- Renamed
ProtectionSpaceHttpAuthCredentials
toURLProtectionSpaceHttpAuthCredentials
- Renamed
CreateWindowRequest
class toCreateWindowAction
- Renamed
initialUrl
toinitialUrlRequest
WebView attribute and made it of typeURLRequest
- Renamed
toolbarTop
InAppBrowser cross-platform option tohideToolbarTop
- Renamed
toolbarBottom
InAppBrowser ios-specific option tohideToolbarBottom
- Removed
debuggingEnabled
WebView option; on Android you should use now theAndroidInAppWebViewController.setWebContentsDebuggingEnabled(bool debuggingEnabled)
static method; on iOS, debugging is always enabled - Removed
androidOnRequestFocus
event because it is never called - Removed
initialHeaders
WebView attribute. UseURLRequest.headers
attribute - Removed
headers
argument fromloadFile
WebView method - Removed
headers
argument fromopenFile
InAppBrowser method - Removed
headers
argument fromloadUrl
WebView method, renamed theurl
argument tourlRequest
and made it of typeURLRequest
- Removed
headers
argument fromopenFile
InAppBrowser method - Removed
headers
argument fromopenUrl
InAppBrowser method, renamed theurl
argument tourlRequest
and made it of typeURLRequest
- Removed
fallback
argument fromChromeSafariBrowser
constructor. Check for availability ofChromeSafariBrowser
if you want show one or the other. - Removed
scheme
argument fromonLoadResourceCustomScheme
WebView event. Use theUri url
parameter now. - Removed
ShouldOverrideUrlLoadingRequest
class and replaced withNavigationAction
- Changed
zoomBy
WebView method signature - Changed type of
urlFile
argument ofinjectCSSFileFromUrl
WebView method toUri
- Changed type of
urlFile
argument ofinjectJavascriptFileFromUrl
WebView method toUri
- Changed return type of
getOriginalUrl
Android-specific WebView method toUri
- Changed return type of
getSafeBrowsingPrivacyPolicyUrl
Android-specific WebView method toUri
- Changed type of
url
argument ofonLoadStart
,onLoadStop
,onLoadError
,onLoadHttpError
,onLoadResourceCustomScheme
,onUpdateVisitedHistory
,onPrint
,onPageCommitVisible
,androidOnSafeBrowsingHit
,androidOnRenderProcessUnresponsive
,androidOnRenderProcessResponsive
,androidOnFormResubmission
,androidOnReceivedTouchIconUrl
WebView events toUri
- Changed type of
baseUrl
andandroidHistoryUrl
arguments ofloadData
WebView method andopenData
...
v4.0.0+4
- Reverted calling
handler.post
on Android when a WebView is created - Fixed iOS extra bottom padding when opening the keyboard
- Fixed "Build for web not working – The integer literal 9223372036854775807 can't be represented exactly in JavaScript" #429
- Fixed iOS userContentController didReceive WKScriptMessage event when using a WebView created with a
windowId
v4.0.0
- Updated
onCreateWindow
,onJsAlert
,onJsConfirm
,onJsPrompt
webview events - Added
onCloseWindow
,onTitleChanged
,onWindowFocus
,onWindowBlur
webview events - Added
androidOnRequestFocus
,androidOnReceivedIcon
,androidOnReceivedTouchIconUrl
,androidOnJsBeforeUnload
,androidOnReceivedLoginRequest
Android-specific webview events - Added
disableDefaultErrorPage
Android-specific webview option - Added
isAvailable
ChromeSafariBrowser static method - Fixed "SFSafariViewController doesn't open like a native iOS modal" #403
BREAKING CHANGES
- Updated
onCreateWindow
,onJsAlert
,onJsConfirm
,onJsPrompt
webview event - Renamed
OnCreateWindowRequest
class toCreateWindowRequest
v3.4.0+2
- Revert default
InAppWebView.gestureRecognizers
value to null on Android
v3.4.0+1
- Update README.md
- Update missing docs
- Fix pub.dev Health suggestions and Analysis suggestions
v3.4.0
3.4.0
- Added
requestFocusNodeHref
,requestImageRef
,getMetaTags
,getMetaThemeColor
,getScrollX
,getScrollY
,getCertificate
webview methods - Added
WebStorage
,LocalStorage
andSessionStorage
class to managewindow.localStorage
andwindow.sessionStorage
JavaScript Web Storage API - Added
supportZoom
webview option also on iOS - Added
HttpOnly
,SameSite
cookie options - Updated
Cookie
class - Added
animated
option toscrollTo
andscrollBy
webview methods - Added error and message to the
ServerTrustChallenge
class for iOS (class used by theonReceivedServerTrustAuthRequest
event) - Added
contentInsetAdjustmentBehavior
webview iOS-specific option - Added
copy
methods for webview options class - Added
SslCertificate
class andX509Certificate
class and parser - Added
values
property for all the custom Enums - Updated Android workaround to hide the Keyboard when the user click outside on something not focusable such as input or a textarea.
- Fixed
zoomBy
,setOptions
webview methods on Android - Fixed
databaseEnabled
android webview option default value totrue
- Fixed
verticalScrollBarEnabled
andhorizontalScrollBarEnabled
on Android - Fixed error caused by
pauseTimers
on iOS when the WebView has been disposed - Fixed
ignoresViewportScaleLimits
,dataDetectorTypes
,suppressesIncrementalRendering
,selectionGranularity
iOS-specific option when used ininitialOptions
- Fixed
getFavicons
method - Fixed
HttpAuthCredentialDatabase.removeHttpAuthCredential
on Android - Fixed some cases where
takeScreenshot
was not working on Android - Fixed
After upgrade to Android embedding V2, still get Shared.activity is null / NullPointerException on android.content.Context.getResources()
#390
BREAKING CHANGES
evaluateJavascript
webview method now returnsnull
on iOS if the evaluated JavaScript source returnsnull
getHtml
webview method now could returnnull
if it was unable to get it.- Moved
supportZoom
webview option to cross-platform builtInZoomControls
android webview options changed default value totrue
- Updated
ServerTrustChallenge
class used by theonReceivedServerTrustAuthRequest
event - The method
getOptions
could return null now - Updated
HttpAuthCredentialDatabase.getAllAuthCredentials
method return type