Skip to content

Releases: pichillilorenzo/flutter_inappwebview

v5.0.4-nullsafety.1

26 Feb 10:29
Compare
Choose a tag to compare
v5.0.4-nullsafety.1 Pre-release
Pre-release
  • Added headers and statusCode properties to IOSURLResponse class

v5.0.3-nullsafety.1

25 Feb 18:52
Compare
Choose a tag to compare
v5.0.3-nullsafety.1 Pre-release
Pre-release
  • Fixed Android screenshot out of memory error
  • Fixed getFavicons WebView method

v5.0.2-nullsafety.1

25 Feb 08:35
Compare
Choose a tag to compare
v5.0.2-nullsafety.1 Pre-release
Pre-release
  • Fixed missing verticalScrollbarThumbColor, verticalScrollbarTrackColor, horizontalScrollbarThumbColor, horizontalScrollbarTrackColor Android-specific WebView options when calling native java setOptions() method on Android

v5.0.1-nullsafety.1

24 Feb 23:09
Compare
Choose a tag to compare
v5.0.1-nullsafety.1 Pre-release
Pre-release
  • Added verticalScrollbarThumbColor, verticalScrollbarTrackColor, horizontalScrollbarThumbColor, horizontalScrollbarTrackColor Android-specific WebView options
  • Fixed some null types and wrong casting

v5.0.0-nullsafety.0

22 Feb 23:01
Compare
Choose a tag to compare
v5.0.0-nullsafety.0 Pre-release
Pre-release
  • 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 and allowFileAccessFromFileURLs WebView options also for iOS (also thanks to liranhao)
  • Added limited cookies support on iOS below 11.0 using JavaScript
  • Added IOSCookieManager class and CookieManager.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 to evaluateJavascript 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 and iosShouldAllowDeprecatedTLS iOS-specific WebView events
  • Added iosAnimated optional argument to zoomBy WebView method
  • Added screenshotConfiguration optional argument to takeScreenshot WebView method
  • Added scriptHtmlTagAttributes optional argument to injectJavascriptFileFromUrl WebView method
  • Added cssLinkHtmlTagAttributes optional argument to injectCSSFileFromUrl WebView method
  • Added iosAllowingReadAccessTo iOS-specific optional argument to loadUrl WebView method
  • Added new iOS-specific attributes to ShouldOverrideUrlLoadingRequest and CreateWindowRequest 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 and allowFileAccessFromFileURLs 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 to hideProgressBar
  • Renamed HttpAuthChallenge to URLAuthenticationChallenge
  • Updated basicConstraints, subjectKeyIdentifier, authorityKeyIdentifier, certificatePolicies, cRLDistributionPoints, authorityInfoAccess attributes type of X509Certificate
  • Updated "WebView.storyboard" for InAppBrowser iOS representation
  • Renamed ShouldOverrideUrlLoadingAction class to NavigationActionPolicy
  • Renamed ProtectionSpace class to URLProtectionSpace
  • Renamed ProtectionSpaceHttpAuthCredentials to URLProtectionSpaceHttpAuthCredentials
  • Renamed CreateWindowRequest class to CreateWindowAction
  • Renamed initialUrl to initialUrlRequest WebView attribute and made it of type URLRequest
  • Renamed toolbarTop InAppBrowser cross-platform option to hideToolbarTop
  • Renamed toolbarBottom InAppBrowser ios-specific option to hideToolbarBottom
  • Removed debuggingEnabled WebView option; on Android you should use now the AndroidInAppWebViewController.setWebContentsDebuggingEnabled(bool debuggingEnabled) static method; on iOS, debugging is always enabled
  • Removed androidOnRequestFocus event because it is never called
  • Removed initialHeaders WebView attribute. Use URLRequest.headers attribute
  • Removed headers argument from loadFile WebView method
  • Removed headers argument from openFile InAppBrowser method
  • Removed headers argument from loadUrl WebView method, renamed the url argument to urlRequest and made it of type URLRequest
  • Removed headers argument from openFile InAppBrowser method
  • Removed headers argument from openUrl InAppBrowser method, renamed the url argument to urlRequest and made it of type URLRequest
  • Removed fallback argument from ChromeSafariBrowser constructor. Check for availability of ChromeSafariBrowser if you want show one or the other.
  • Removed scheme argument from onLoadResourceCustomScheme WebView event. Use the Uri url parameter now.
  • Removed ShouldOverrideUrlLoadingRequest class and replaced with NavigationAction
  • Changed zoomBy WebView method signature
  • Changed type of urlFile argument of injectCSSFileFromUrl WebView method to Uri
  • Changed type of urlFile argument of injectJavascriptFileFromUrl WebView method to Uri
  • Changed return type of getOriginalUrl Android-specific WebView method to Uri
  • Changed return type of getSafeBrowsingPrivacyPolicyUrl Android-specific WebView method to Uri
  • Changed type of url argument of onLoadStart, onLoadStop, onLoadError, onLoadHttpError, onLoadResourceCustomScheme, onUpdateVisitedHistory, onPrint, onPageCommitVisible, androidOnSafeBrowsingHit, androidOnRenderProcessUnresponsive, androidOnRenderProcessResponsive, androidOnFormResubmission, androidOnReceivedTouchIconUrl WebView events to Uri
  • Changed type of baseUrl and androidHistoryUrl arguments of loadData WebView method and openData ...
Read more

v4.0.0+4

03 Jul 18:56
Compare
Choose a tag to compare
  • 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

30 Jun 12:31
Compare
Choose a tag to compare
  • 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 to CreateWindowRequest

v3.4.0+2

24 Jun 22:19
Compare
Choose a tag to compare
  • Revert default InAppWebView.gestureRecognizers value to null on Android

v3.4.0+1

21 Jun 23:26
Compare
Choose a tag to compare
  • Update README.md
  • Update missing docs
  • Fix pub.dev Health suggestions and Analysis suggestions

v3.4.0

21 Jun 22:13
Compare
Choose a tag to compare

3.4.0

  • Added requestFocusNodeHref, requestImageRef, getMetaTags, getMetaThemeColor, getScrollX, getScrollY, getCertificate webview methods
  • Added WebStorage, LocalStorage and SessionStorage class to manage window.localStorage and window.sessionStorage JavaScript Web Storage API
  • Added supportZoom webview option also on iOS
  • Added HttpOnly, SameSite cookie options
  • Updated Cookie class
  • Added animated option to scrollTo and scrollBy webview methods
  • Added error and message to the ServerTrustChallenge class for iOS (class used by the onReceivedServerTrustAuthRequest event)
  • Added contentInsetAdjustmentBehavior webview iOS-specific option
  • Added copy methods for webview options class
  • Added SslCertificate class and X509Certificate 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 to true
  • Fixed verticalScrollBarEnabled and horizontalScrollBarEnabled 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 in initialOptions
  • 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 returns null on iOS if the evaluated JavaScript source returns null
  • getHtml webview method now could return null if it was unable to get it.
  • Moved supportZoom webview option to cross-platform
  • builtInZoomControls android webview options changed default value to true
  • Updated ServerTrustChallenge class used by the onReceivedServerTrustAuthRequest event
  • The method getOptions could return null now
  • Updated HttpAuthCredentialDatabase.getAllAuthCredentials method return type