Skip to content

Releases: pichillilorenzo/flutter_inappwebview

v3.3.0+3

03 Jun 00:13
Compare
Choose a tag to compare

3.3.0+3

  • Updated Android build.gradle version and some androidx properties
  • Fixed Multiple sessions #371
  • Fixed incognito mode is broken swift #320

v3.3.0

30 May 21:16
Compare
Choose a tag to compare

3.3.0

  • Updated API docs
  • Updated Android context menu workaround
  • Calling onCreateContextMenu event on iOS also when the context menu is disabled in order to have the same effect as Android
  • Added options attribute to ContextMenu class and created ContextMenuOptions class
  • Added Android keyboard workaround to hide the keyboard when clicking other HTML elements, losing the focus on the previous input
  • Added onEnterFullscreen, onExitFullscreen webview events #275
  • Added Android support to use camera on HTML inputs that requires it, such as <input type="file" accept="image/*" capture> #353
  • Added overScrollMode, networkAvailable, scrollBarStyle, verticalScrollbarPosition, scrollBarDefaultDelayBeforeFade, scrollbarFadingEnabled, scrollBarFadeDuration, rendererPriorityPolicy, useShouldInterceptRequest, useOnRenderProcessGone webview options on Android
  • Added pageDown, pageUp, saveWebArchive, zoomIn, zoomOut, clearHistory webview methods on Android
  • Added getCurrentWebViewPackage static webview method on Android
  • Added setContextMenu, clearFocus methods to webview controller
  • Added onPageCommitVisible webview event
  • Added androidShouldInterceptRequest, androidOnRenderProcessUnresponsive, androidOnRenderProcessResponsive, androidOnRenderProcessGone, androidOnFormResubmission, androidOnScaleChanged Android events
  • Added toString() method to various classes in order to have a better output instead of simply Instance of ...
  • Fixed Print preview is not working? java.lang.IllegalStateException: Can print only from an activity #128
  • Fixed onJsAlert, onJsConfirm, onJsPrompt for InAppBrowser on Android
  • Fixed onActivityResult for InAppBrowser on Android
  • Fixed InAppBrowser.openWithSystemBrowser crash on iOS #358
  • Fixed Attempt to invoke virtual method 'java.util.Set java.util.HashMap.entrySet()' on a null object reference #367
  • Fixed missing allowsAirPlayForMediaPlayback iOS webview options implementation

BREAKING CHANGES

  • Android clearClientCertPreferences, getSafeBrowsingPrivacyPolicyUrl, setSafeBrowsingWhitelist webview methods are static now
  • Removed iOS event onDidCommit; it has been renamed to onPageCommitVisible and made cross-platform
  • contextMenu webview attribute is final now

v3.2.0

21 May 01:37
Compare
Choose a tag to compare

3.2.0

  • Added ContextMenu and ContextMenuItem classes #235
  • Added onCreateContextMenu, onHideContextMenu, onContextMenuActionItemClicked context menu events
  • Added contextMenu to WebView
  • Added disableContextMenu WebView option
  • Added getSelectedText, getHitTestResult methods to WebView Controller
  • Fixed Confirmation dialog (onbeforeunload) displayed after popped from webview page #337
  • Fixed CookieManager.setCookie expiresDate option
  • Fixed Scrolling not smooth on iOS #341

BREAKING CHANGES

  • Renamed LongPressHitTestResult to InAppWebViewHitTestResult.
  • Renamed LongPressHitTestResultType to InAppWebViewHitTestResultType.

v3.1.0

11 May 00:51
Compare
Choose a tag to compare
  • Added HeadlessInAppWebView class to be able to use WebView in headless mode
  • Added close, addMenuItem, addMenuItems methods to ChromeSafariBrowser
  • Added ChromeSafariBrowserMenuItem class in order to create custom menu item for ChromeSafariBrowser.
  • Fixed InAppWebView.channel null when used by InAppBrowserActivity on android
  • Fixed iOS presentationStyle affecting only dismiss animation #305

BREAKING CHANGES

  • Renamed InAppWebViewWidgetOptions to InAppWebViewGroupOptions.

v3.0.0

09 May 03:03
Compare
Choose a tag to compare
  • 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

v2.1.0+1

02 Dec 23:27
Compare
Choose a tag to compare
  • Fix docs

v2.1.0

02 Dec 23:10
Compare
Choose a tag to compare
  • Added pause and resume methods for Android.
  • Added pauseTimers and resumeTimers methods.
  • Added new historyUrl optional parameter for loadData and openData methods and InAppWebViewInitialData class. It is used only on Android.
  • Fix "problems with onReceivedHttpAuthRequest when initialData is used" #201
  • Fix "System ui (status bar and navigation bar) doesn't hide automatically" #202

v2.0.1+1

01 Dec 11:55
Compare
Choose a tag to compare
  • Fixed error "java.lang.ClassCastException: $Proxy1 cannot be cast to android.view.WindowManagerImpl" on Android when using native alert dialogs

v2.0.1

28 Nov 01:40
Compare
Choose a tag to compare
  • Added onPermissionRequest event. This event is fired when the webview is requesting permission to access the specified resources and the permission currently isn't granted or denied (available only on Android).

v2.0.0

25 Nov 22:14
Compare
Choose a tag to compare
  • Merge "Avoid null pointer exception after webview is disposed" #116 (thanks to robsonfingo)
  • Merge "Remove async call in close" #119 (thanks to benfingo)
  • Merge "Android takeScreenshot does not work properly." #122 (thanks to PauloMelo)
  • Merge "Resolving gradle error." #144 (thanks to Klingens13)
  • Merge "Create issue and pull request templates" #150 (thanks to deandreamatias)
  • Merge "Fix abstract method error && swift version error" #155 (thanks to AlexVincent525)
  • Merge "migrating to swift 5.0" #162 (thanks to fattiger00)
  • Merge "Update readme example" #178 (thanks to SebastienBtr)
  • Merge "handle choose file callback in android" #183 (thanks to crazecoder)
  • Merge "add initialScale in android" #186 (thanks to crazecoder)
  • Added horizontalScrollBarEnabled and verticalScrollBarEnabled options to enable/disable the corresponding scrollbar of the WebView #165
  • Added onDownloadStart event and useOnDownloadStart option: event fires when the WebView recognizes and starts a downloadable file.
  • Added onLoadResourceCustomScheme event and resourceCustomSchemes option to set custom schemes that WebView must handle to load resources
  • Added onTargetBlank event and useOnTargetBlank option to manage links with target="_blank"
  • Added ContentBlocker, ContentBlockerTrigger and ContentBlockerAction classes and the contentBlockers option that allows to define a set of rules to use to block content in the WebView
  • Added new WebView options: minimumFontSize, debuggingEnabled, preferredContentMode, applicationNameForUserAgent, incognito, cacheEnabled, disableVerticalScroll, disableHorizontalScroll
  • Added new Android WebView options: allowContentAccess, allowFileAccess, allowFileAccessFromFileURLs, allowUniversalAccessFromFileURLs, appCachePath, blockNetworkImage, blockNetworkLoads, cacheMode, cursiveFontFamily, defaultFixedFontSize, defaultFontSize, defaultTextEncodingName, disabledActionModeMenuItems, fantasyFontFamily, fixedFontFamily, forceDark, geolocationEnabled, layoutAlgorithm, loadWithOverviewMode, loadsImagesAutomatically, minimumLogicalFontSize, needInitialFocus, offscreenPreRaster, sansSerifFontFamily, serifFontFamily, standardFontFamily, saveFormData, thirdPartyCookiesEnabled, hardwareAcceleration
  • Added new iOS WebView options: isFraudulentWebsiteWarningEnabled, selectionGranularity, dataDetectorTypes, sharedCookiesEnabled
  • Added onGeolocationPermissionsShowPrompt event and GeolocationPermissionShowPromptResponse class (available only for Android)
  • Added startSafeBrowsing, setSafeBrowsingWhitelist and getSafeBrowsingPrivacyPolicyUrl methods (available only for Android)
  • Added clearSslPreferences and clearClientCertPreferences methods (available only for Android)
  • Added onSafeBrowsingHit event (available only for Android)
  • Added onJsAlert, onJsConfirm and onJsPrompt events to manage javascript popup dialogs
  • Added onReceivedHttpAuthRequest event
  • Added clearCache, scrollTo, scrollBy, getHtml, injectJavascriptFileFromAsset and injectCSSFileFromAsset methods method
  • Added HttpAuthCredentialDatabase class
  • Added onReceivedServerTrustAuthRequest and onReceivedClientCertRequest events to manage SSL requests
  • Added onFindResultReceived event, findAllAsync, findNext and clearMatches methods
  • Added shouldInterceptAjaxRequest, onAjaxReadyStateChange, onAjaxProgress and shouldInterceptFetchRequest events with useShouldInterceptAjaxRequest and useShouldInterceptFetchRequest webview options
  • Added onNavigationStateChange and onLoadHttpError events
  • Fun: added getTRexRunnerHtml and getTRexRunnerCss methods to get html (with javascript) and css to recreate the Chromium's t-rex runner game

BREAKING CHANGES

  • Deleted WebResourceRequest class
  • Updated WebResourceResponse class
  • Updated ConsoleMessage class
  • Updated ConsoleMessageLevel class
  • Updated onLoadResource event
  • Updated CookieManager class
  • WebView options are now available with the new corresponding classes: InAppWebViewOptions, AndroidInAppWebViewOptions, iOSInAppWebViewOptions, InAppBrowserOptions, AndroidInAppBrowserOptions, iOSInAppBrowserOptions, AndroidChromeCustomTabsOptions and iOSSafariOptions
  • Renamed getFavicon to getFavicons, now it returns a list of all favicons (List<Favicon>) found
  • Renamed injectScriptFile to injectJavascriptFileFromUrl
  • Renamed injectScriptCode to evaluateJavascript
  • Renamed injectStyleCode to injectCSSCode
  • Renamed injectStyleFile to injectCSSFileFromUrl