Commit Graph

217 Commits

Author SHA1 Message Date
Po-Jui Chen 47ef668273
fix takeScreenshot crash 2022-03-16 11:15:33 +08:00
Manuito83 d2730d75bc Fixes zoomBy with floats 2022-03-06 14:59:14 +01:00
sunalwaysknows d8d84053bc Update: Append optional applicationNameForUserAgent to configrational applicationNameForUserAgent 2022-02-26 11:06:25 +08:00
gitlab.scripts 93187105f4 fix persistance 2022-02-24 13:38:13 +01:00
Le Minh Hoang 42743f23eb
fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS 2021-10-24 23:11:21 +07:00
Michael Kao 4e47efe111 Adds missing body to URLRequest mapping. 2021-09-28 12:02:24 +02:00
cloudygeek 3c60c15a81
Update Options.swift
checking if object is null before checking if nil. causes to crash if null.
2021-06-18 09:27:27 +01:00
Caleb Jones 19ffe781e6 Fix parsing crash on null value. 2021-05-03 10:31:54 -04:00
Lorenzo Pichilli f06bcdf695 Added onLoad and onError callbacks in ScriptHtmlTagAttributes class used by InAppWebViewController.injectJavascriptFileFromUrl, InAppWebViewController.injectJavascriptFileFromAsset returns a Future<dynamic> type now 2021-04-07 18:34:35 +02:00
Lorenzo Pichilli 539ff0dedc Removed duplicate lib exports, Fixed some rare cases when iOS WKWebView scrollViewDidEndDragging event blocks the scroll gesture 2021-04-06 11:54:42 +02:00
Lorenzo Pichilli ffaa28a250 fix #776, fix #748, Added support of allowingReadAccessTo iOS-specific WebView option for the WebView initialData parameter, Added iosAllowingReadAccessTo iOS-specific parameter to the loadData WebView method 2021-04-02 15:18:28 +02:00
Lorenzo Pichilli 22ea0091cd Added initialSize property and setSize/getSize methods to the HeadlessInAppWebView class, androidOnScaleChanged event is deprecated - use onZoomScaleChanged event, getScale method is deprecated - use getZoomScale method, Removed final keyword for all HeadlessInAppWebView events, Fixed wrong usage of Android WebView scale property 2021-03-26 21:04:44 +01:00
Lorenzo Pichilli 14d06fad48 Fixed iOS 'Unexpectedly found nil while unwrapping an Optional value: file flutter_inappwebview/WKUserContentController.swift, line 36' error when applePayAPIEnabled iOS-specific WebView option is enabled 2021-03-25 12:01:05 +01:00
Lorenzo Pichilli a3e4da3e61 Added isRunning method to the HeadlessInAppWebView class, Fixed iOS WebMessageListener javascript implementation not calling event listeners when onmessage is set, Fixed onCreateContextMenu event on Android where hitTestResult has always null values, fix #742 2021-03-23 17:13:40 +01:00
Lorenzo Pichilli c22707da49 Added onOverScrolled WebView event, updated tests 2021-03-22 16:21:56 +01:00
Lorenzo Pichilli 6f356be623 Fixed ajax and fetch interceptor when the data/body sent is not a string, fix #724, updated nodejs test server 2021-03-18 17:24:13 +01:00
Lorenzo Pichilli bcc5fc68ba fix #719, Fixed iOS sometimes scrollView.contentSize doesn't fit all the frame.size available, Added canScrollVertically and canScrollHorizontally webview methods 2021-03-13 15:24:31 +01:00
Lorenzo Pichilli a40831087f Added WebMessageChannel and WebMessageListener features, Updated Android Gradle distributionUrl version to 5.6.4, AndroidInAppWebViewController.getCurrentWebViewPackage is available now starting from Android API 21+, Attempt to fix #665, fix #579, Fixed wrong mapping of NavigationAction class on Android for androidHasGesture and androidIsRedirect properties 2021-03-11 22:42:18 +01:00
Lorenzo Pichilli 54b31ca885 fix #707 2021-03-08 17:23:34 +01:00
Lorenzo Pichilli b6d4fb9596 Added support for pull-to-refresh feature (fix #395), Fixed issue not rendering WebView content when scrolling on iOS (fix #704), Fixed InAppBrowser.openData method, InAppBrowser.initialUserScripts InAppBrowser.id HeadlessInAppWebView.id properties are final now 2021-03-05 23:19:50 +01:00
Lorenzo Pichilli 03a09bffdc fix #696 2021-03-01 20:24:26 +01:00
Lorenzo Pichilli 74550d1186 Removed all the dependencies: uuid, device_info, intl, and mime 2021-03-01 03:21:07 +01:00
Lorenzo Pichilli de89f2637b Added headers and statusCode properties to IOSURLResponse class #693 2021-02-26 11:22:57 +01:00
Lorenzo Pichilli f92373cb62 Fixed Android screenshot out of memory error, Fixed getFavicons WebView method 2021-02-25 19:48:48 +01:00
Lorenzo Pichilli 1e63238eb8 updated README.md, Added verticalScrollbarThumbColor, verticalScrollbarTrackColor, horizontalScrollbarThumbColor, horizontalScrollbarTrackColor Android-specific WebView options, Fixed some null types and wrong casting 2021-02-25 00:00:46 +01:00
Lorenzo Pichilli f886f2f1e5 bug fixes, fix #450, updated integration tests 2021-02-22 23:38:30 +01:00
Lorenzo Pichilli 0b0bce66aa code refactoring, new features, replaced String url to Uri uri everywhere, added URLRequest 2021-02-22 12:16:23 +01:00
Lorenzo Pichilli de9d081af2 fix #679, updated X509Certificate classes, removed androidOnRequestFocus event
because it is never called
2021-02-12 17:14:13 +01:00
Lorenzo Pichilli 90e5d0a736 added applePayAPIEnabled iOS-specific WebView options, fix #605 2021-02-10 21:22:52 +01:00
Lorenzo Pichilli 4469ec7a62 fixed Options.parse iOS method, updated .cirrus.yml 2021-02-10 04:14:58 +01:00
Lorenzo Pichilli 2cd0948620 Added iosShouldAllowDeprecatedTLS iOS-specific WebView event 2021-02-10 02:32:05 +01:00
Lorenzo Pichilli 2aab462702 Added useOnNavigationResponse iOS-specific WebView option, Added iosOnNavigationResponse iOS-specific WebView event, Added new iOS-specific attributes to ShouldOverrideUrlLoadingRequest and CreateWindowRequest classes 2021-02-10 00:15:10 +01:00
Lorenzo Pichilli 0e4e16562d Added scriptHtmlTagAttributes optional argument to injectJavascriptFileFromUrl WebView method, Added cssLinkHtmlTagAttributes optional argument to injectCSSFileFromUrl WebView method 2021-02-09 21:11:50 +01:00
Lorenzo Pichilli 88bfe9036f added createWebArchiveData iOS-specific WebView method, Moved saveWebArchive WebView method from Android-specific to cross-platform 2021-02-09 01:39:35 +01:00
Lorenzo Pichilli b15ae759d5 added createPdf ios webview method, fixed null config takeScreenshot android exception 2021-02-08 18:28:35 +01:00
Lorenzo Pichilli 3f1ed3ba70 added ScreenshotConfiguration class and screenshotConfiguration optional argument to takeScreenshot WebView method 2021-02-08 01:17:12 +01:00
Lorenzo Pichilli 5a4e2fda0f updated CHANGELOG.md, Added iosAnimated optional argument to zoomBy WebView method 2021-02-07 16:37:01 +01:00
Lorenzo Pichilli 048f8f5ead
Merge pull request #670 from pcqpcq/master
fix(iOS): missing implementation of method zoomBy
2021-02-07 16:10:33 +01:00
Lorenzo Pichilli 7c5931b0f9 Added callAsyncJavaScript WebView method, fix #642, fix #614 2021-02-07 16:05:39 +01:00
pancq b0d3b82ca6 fix(iOS): missing implementation of method zoomBy 2021-02-07 15:54:40 +08:00
Lorenzo Pichilli 55242a35f9 updated management of Content Worlds, updated evaluateJavascript API 2021-02-06 02:30:15 +01:00
Lorenzo Pichilli a023d34fd9 Added mediaType, pageZoom, limitsNavigationsToAppBoundDomains iOS-specific webview options, Added handlesURLScheme iOS-specific webview method, Added ContentWorld class, minor bug fixes 2021-02-04 01:43:55 +01:00
Lorenzo Pichilli 37546a1dc0 fix #662 2021-02-03 15:17:15 +01:00
Lorenzo Pichilli cf0c2029ff Added addUserScript, addUserScripts, removeUserScript, removeUserScripts, removeAllUserScripts WebView methods, Added initialUserScripts WebView option, Added UserScript and UserScriptInjectionTime classes, updated README.md, fix some wrong iOS swift return value on method call handler, added InAppWebViewMethodHandler native class 2021-02-01 15:55:27 +01:00
Lorenzo Pichilli a04f9eab10 updated ios Cookie Manager, Added IOSCookieManager class and CookieManager.instance().ios.getAllCookies iOS-specific method, updated README.md 2021-01-31 22:08:20 +01:00
Lorenzo Pichilli 77f09dd5b5 fixed iOS getCookies MyCookieManager, Added limited cookies support on iOS below 11.0 using JavaScript 2021-01-30 14:53:32 +01:00
Lorenzo Pichilli f968d8e5d9 updated CHANGELOG.md, fix #596 2021-01-29 00:57:30 +01:00
Lorenzo Pichilli 3f2fe9e864
Merge pull request #567 from gunantosteven/master
Fixing wrong casting
2021-01-29 00:13:55 +01:00
Lorenzo Pichilli d96ea02876 fix #654, updated README.md 2021-01-28 18:56:04 +01:00
Lorenzo Pichilli 5c99ba927d
Merge pull request #634 from albatrosify/master
Add NTLM Auth
2021-01-28 17:58:33 +01:00
Lorenzo Pichilli c65ee346dd
Merge pull request #658 from getkickback/ios-cookie-domain
iOS CookieManager.getCookies - Check that URL has suffix of cookie do…
2021-01-28 17:54:14 +01:00
Lorenzo Pichilli 26e63cedee Added support for Dart null-safety feature, Updated integration tests, Fixed missing properties initialization when using InAppWebViewController.fromInAppBrowser, Removed debuggingEnabled WebView option and added AndroidInAppWebViewController.setWebContentsDebuggingEnabled static method 2021-01-28 17:10:15 +01:00
Arne Kepp 44482c123f iOS CookieManager.getCookies - Check that URL has suffix of cookie domain 2021-01-28 11:46:41 +01:00
LrdHelmchen 007e1cde53 Add NTLM Auth 2021-01-06 12:48:26 +01:00
Steven Gunanto 79ef44f943
Fixing wrong casting 2020-10-27 09:35:12 +07:00
Lorenzo Pichilli a83dca01eb Fixed missing clearHistory webview method implementation on Android, Fixed iOS crash when using CookieManager getCookies for an URL and the host URL is null 2020-09-07 18:10:26 +02:00
Lorenzo Pichilli 5b5620282d updated CHANGELOG.md 2020-09-07 10:12:24 +02:00
edmund 699c731a40 Fix: added compatibility header 2020-07-31 20:35:27 +08:00
Lorenzo Pichilli f7af3130a4 Fixed iOS userContentController didReceive WKScriptMessage event when using a WebView created with a windowId 2020-07-03 20:12:52 +02:00
Lorenzo Pichilli b8ec14d6b6 Reverted calling handler.post on Android when a WebView is created, Fixed iOS extra bottom padding when opening the keyboard, fix #429 2020-07-02 17:30:55 +02:00
Lorenzo Pichilli 3bb05cf03b added isAvailable ChromeSafariBrowser static method 2020-06-30 14:29:19 +02:00
Lorenzo Pichilli 710be67894 added disableDefaultErrorPage Android-specific webview option, updated onCreateWindow event implementation 2020-06-30 10:58:59 +02:00
Lorenzo Pichilli eea691664b Updated onCreateWindow, onJsAlert, onJsConfirm, and onJsPrompt webview events, added onCloseWindow, onTitleChanged, onWindowFocus, and onWindowBlur webview events, added androidOnRequestFocus, androidOnReceivedIcon, androidOnReceivedTouchIconUrl, androidOnJsBeforeUnload, and androidOnReceivedLoginRequest Android-specific webview events, fix #403 2020-06-29 16:34:29 +02:00
Lorenzo Pichilli 9743687ede Fixed HttpAuthCredentialDatabase.removeHttpAuthCredential on Android, Fixed some cases where takeScreenshot was not working on Android, fix #390, Updated HttpAuthCredentialDatabase.getAllAuthCredentials method return type 2020-06-20 21:58:56 +02:00
Lorenzo Pichilli 64246d84d9 Added 'values' property for all the custom Enums, bug fixes 2020-06-19 21:59:43 +02:00
Lorenzo Pichilli 6c2a60714e Added SslCertificate class and X509Certificate class and parser, updated ServerTrustChallenge class 2020-06-15 02:08:23 +02:00
Lorenzo Pichilli b9d1482887 added getScrollX and getScrollY webview methods, added HttpOnly and SameSite set cookie options, added animated option to scrollTo and scrollBy webview methods, Added error and message to the ServerTrustChallenge class for iOS, added contentInsetAdjustmentBehavior webview iOS-specific option, added getCertificate android-specific webview method, added copy and copyWithValue methods for webview class options 2020-06-13 03:50:19 +02:00
Lorenzo Pichilli 1b2de86375 added new webview methods, added supporZoom webview option on iOS, bug fixes, prepare new version 3.4.0 2020-06-12 04:04:41 +02:00
Lorenzo Pichilli 17d8aa1167 Updated Android build.gradle version and some androidx properties, fix #371, fix #320 2020-06-03 01:45:58 +02:00
Lorenzo Pichilli 9f9232e1f3 added clearHistory webview methods on Android, setContextMenu and clearFocus webview methods, added ContextMenuOptions class 2020-05-30 20:23:33 +02:00
Lorenzo Pichilli ad56ca6621 Added 'toString()' method to various classes in order to have a better output instead of simply 'Instance of ...', updated getOptions() method 2020-05-29 19:56:03 +02:00
Lorenzo Pichilli 208d6c732c added onPageCommitVisible event, updated dart code for new events and methods, updated docs, fix #367 2020-05-29 01:03:45 +02:00
Lorenzo Pichilli 428ecf7a31 updated README.md, fix #358 2020-05-23 12:32:27 +02:00
Lorenzo Pichilli e1e1574d9e added onEnterFullscreen and onExitFullscreen events, added android Log.d for debug 2020-05-22 16:52:04 +02:00
Lorenzo Pichilli f569e369f4 Updated Android context menu workaround, updated iOS onCreateContextMenu event, Added Android keyboard workaround to hide the keyboard when clicking other HTML elements 2020-05-21 23:02:08 +02:00
Lorenzo Pichilli 5943059b1d v3.2.0, added context menu classes, updated docs, fix #235, fix #337, fix #341 2020-05-21 03:34:39 +02:00
Lorenzo Pichilli b6b1e0e290 fixed CookieManager.setCookie
expiresDate option (#338)
2020-05-11 15:09:17 +02:00
Lorenzo Pichilli 02c3de9280 added HeadlessInAppWebView class, added close, addMenuItem and addMenuItems methods to ChromeSafariBrowser, added ChromeSafariBrowserMenuItem class, fixed InAppWebView.channel null exception on android, fix #305, fix #245, fix #299 2020-05-11 02:48:41 +02:00
Lorenzo Pichilli 6a7963e4fd fixed android zoom, added new ios webview options, added
>  onLongPressHitTestResult event, updated test cases, fixed Promise polyfill, fixed android options
2020-05-09 04:36:07 +02:00
Lorenzo Pichilli 7d9f9f56a4 fix #213 2019-12-18 21:42:34 +01:00
Lorenzo Pichilli 0e30767c15 code refactoring, added InAppBrowserManager and ChromeSafariBrowserManager classes on native code, updated webview options class names 2019-12-18 21:34:40 +01:00
Lorenzo Pichilli 4d752ee9d9 updated ChromeSafariBrowser class, Renamed Chrome Custom Tab addShareButton option to addDefaultShareMenuItem, Renamed ChromeSafariBrowser onLoaded to onCompletedInitialLoad, Renamed all iOS and Android webview options class, fix #229, Added packageName and keepAliveEnabled ChromeCustomTab options for Android 2019-12-18 01:56:21 +01:00
Lorenzo Pichilli b9fb01f177 fix #225, merged #228, updated ios options naming, updated default value for databaseEnabled android option, added new methods and events 2019-12-16 23:58:10 +01:00
Lorenzo Pichilli aa20beafb1 updated shouldOverrideUrlLoading event for #146, added print method and event #128, fix #123 javascript handler for Android API <= 22, renamed onTargetBlank to onCreateWindow event, deleted useOnTargetBlank option, added supportMultipleWindows android option, added getDefaultUserAgent static method, Updated default value for domStorageEnabled option to true 2019-12-10 00:29:09 +01:00
Lorenzo Pichilli 6ba5b0c115 Added pause and resume methods for Android, Added pauseTimers and resumeTimers methods, Added new historyUrl optional parameter only for Android, fix #202, should fix #201 2019-12-03 00:07:29 +01:00
Lorenzo Pichilli 8a356bdef4 renamed plugin to flutter_inappwebview 2019-11-29 16:59:18 +01:00
Lorenzo Pichilli 64f6995d83 added onLoadHttpError event, fixed InAppWebView handleMethod, updated example, updated driver tests 2019-11-21 02:19:43 +01:00
Lorenzo Pichilli 3106caf437 fix iOS setCookie #196, added iOS shared Process Pool #196, added scrollTo and scrollBy methods 2019-11-19 20:44:06 +01:00
Lorenzo Pichilli 651cb656bf added disableVerticalScroll and disableHorizontalScroll webview options, updated example 2019-11-18 22:21:35 +01:00
Lorenzo Pichilli fed2da63ba fixed issue with headers in javascript code for intercepting ajax requests 2019-11-18 02:50:56 +01:00
Lorenzo Pichilli a11936c188 updated ConsoleMessage class, updated evaluateJavascript method, fixed Android JavaScriptBridgeInterface _callHandler method 2019-11-17 18:31:31 +01:00
Lorenzo Pichilli e2bd307664 updated flutter driver tests, fixed javascript code for fetch request interception 2019-11-16 19:54:03 +01:00
Lorenzo Pichilli a65909038c fixed ajax interceptor javascript code, re-added flutterInAppBrowserPlatformReady javascript for the window object, tests moved inside example folder using flutter driver 2019-11-16 12:41:30 +01:00
Lorenzo Pichilli f89610ae29 updated AjaxRequest class, fixed 'InvalidStateError' ajax error #189, No need to listen to window.addEventListener(flutterInAppBrowserPlatformReady, fuction(){ }) javascript event anymore to use JaaScript message handlers 2019-11-11 00:16:38 +01:00
Lorenzo Pichilli bb0e7f70c7 fixed InAppWebViewOptions error, fixed javascript error for ajax requests 2019-11-10 11:50:01 +01:00
Lorenzo Pichilli 0c17e03256 updated code docs, fixed javascript code for the ajax and fetch request event handlers 2019-11-09 23:35:18 +01:00
Lorenzo Pichilli 31dc73cfce added new webview options 2019-11-08 00:32:29 +01:00
Lorenzo Pichilli b4544c7d98 updated shouldInterceptFetchRequest 2019-11-06 22:55:54 +01:00
Lorenzo Pichilli e4d8b79866 updated locationchange iOS javascript event name, updated javaScriptHandlerForbiddenNames dart variable 2019-11-06 00:37:36 +01:00
Lorenzo Pichilli 16de8b199d added onNavigationStateChange, updated onAjaxProgress and onAjaxReadyStateChange return type 2019-11-06 00:23:24 +01:00