Skip to content

v3.0.0

Compare
Choose a tag to compare
@pichillilorenzo pichillilorenzo released this 09 May 03:03
· 1327 commits to master since this release
  • Added Promise javascript polyfill for webviews that doesn't support it for window.flutter_inappwebview.callHandler
  • Added getDefaultUserAgent static method to InAppWebViewController
  • Added onUpdateVisitedHistory, onPrint, onLongPressHitTestResult event
  • Added androidOnGeolocationPermissionsHidePrompt event for Android webview
  • Added iosOnWebContentProcessDidTerminate, iosOnDidCommit, iosOnDidReceiveServerRedirectForProvisionalNavigation events for iOS webview
  • Added supportMultipleWindows webview option for Android
  • Added regexToCancelSubFramesLoading webview option for Android to cancel subframe requests on shouldOverrideUrlLoading event based on a Regular Expression
  • Added getContentHeight, zoomBy, printCurrentPage, getScale methods
  • Added getOriginalUrl webview method for Android
  • Added reloadFromOrigin, hasOnlySecureContent webview methods for iOS
  • Added automaticallyAdjustsScrollIndicatorInsets, accessibilityIgnoresInvertColors, decelerationRate, alwaysBounceVertical, alwaysBounceHorizontal, scrollsToTop, isPagingEnabled, maximumZoomScale, minimumZoomScale webview options for iOS
  • Added WebStorageManager class which manages the web storage used by WebView instances
  • Added packageName #229 and keepAliveEnabled ChromeCustomTab options for Android
  • Updated for Flutter 1.12 new Java Embedding API (Android)
  • Updated clearCache for Android
  • Updated default value for domStorageEnabled and databaseEnabled options to true for Android
  • Merge "Fixes null error when calling getOptions for InAppBrowser class" #214 (thanks to panndoraBoo)
  • Merge "Fixes crash onConsoleMessage iOS forced unwrapping" #228 (thanks to tokonu)
  • Merge "Fix HTTPCookie.secure" #311 (thanks to xtyxtyx)
  • Merge "Fix config options for Android release builds" #295 (thanks to wwwdata)
  • Merge "fix scrollbar on iOS always show if not disable scroll" #256 (thanks to phamnhuvu-dev)
  • Merge "Fix crash on nil/invalid URL (iOS)" #262 (thanks to AlexVincent525)
  • Merge "Fix crash when prompt was called on Android Q." #262 (thanks to AlexVincent525)
  • Fix for Android and iOS InAppBrowser for some controller methods not exposed.
  • Fixed "App Crashes after clicking on dropdown (Using inappwebview)" #182
  • Fixed "webview can not be released when in ios" #225. Now the iOS WebView is released from memory when it is disposed from Flutter.
  • Fixed "Setting of presentationStyle not working on iOS" #213
  • Fixed "Android zoom issues" #270

BREAKING CHANGES

  • Updated shouldOverrideUrlLoading event:
    • the url parameter has been moved inside an instance of ShouldOverrideUrlLoadingRequest class
    • it has a return type ShouldOverrideUrlLoadingAction to allow or cancel navigation instead of cancel every time the request
  • Renamed onTargetBlank to onCreateWindow
  • Deleted useOnTargetBlank webview option
  • Making methods available only for the specific platform more explicit: moved all the webview's controller methods for Android inside controller.android and all the webview's controller methods for iOS inside controller.ios
  • Making events available only for the specific platform more explicit:
    • Renamed onSafeBrowsingHit to androidOnSafeBrowsingHit
    • Renamed onGeolocationPermissionsShowPrompt to androidOnGeolocationPermissionsShowPrompt
    • Renamed onPermissionRequest to androidOnPermissionRequest
  • Updated attribute names for InAppWebViewWidgetOptions, InAppBrowserClassOptions and ChromeSafariBrowserClassOptions classes
  • Renamed and updated onNavigationStateChange to onUpdateVisitedHistory
  • Renamed all iOS and Android webview options class
  • Renamed Chrome Custom Tab addShareButton option to addDefaultShareMenuItem
  • Renamed ChromeSafariBrowser onLoaded to onCompletedInitialLoad