Commit Graph

343 Commits

Author SHA1 Message Date
Matthew Lloyd 98316371d8 The 'open' method requires an options dictionary
Otherwise, SwiftFlutterPlugin.swift throws an exception on line 285
when the InAppBrowser.openWithSystemBrowser(url) method is called:

  let options = (arguments["options"] as? [String: Any])!
2019-04-27 03:57:19 -04:00
Matthew Lloyd 11da457d51 Add null checks around calls to InAppWebView callbacks and InAppBrowser methods
This prevents a crash I've been seeing as of v1.1.2 (for the onScrollChanged callback)
and should also prevent any other similar possible crashes.

Also, suppress an unused_field analyzer warning for InAppWebViewController._id.
2019-04-26 15:12:57 -04:00
pichillilorenzo 36fc04c285 fix #74, merge #81 #83, fix javascript `...args` parameter of `window.flutter_inappbrowser.callHandler()` 2019-04-26 16:55:05 +02:00
pichillilorenzo 219f079a9e Fixed README.md and method documentation 2019-03-15 03:25:46 +01:00
pichillilorenzo 660292f504 updated documentation for addJavaScriptHandler method, updated README.md, updated inline webview example 2019-03-15 02:55:50 +01:00
pichillilorenzo 0c49b45b01 moved json serialization for JavaScriptBridgeInterface to dart side, fix #64, fix #46 2019-03-14 21:59:13 +01:00
pichillilorenzo a480ebf6a1 added return value for JavaScriptHandlerCallback, added flutterInAppBrowserPlatformReady event for javascript, breaking change: javaScriptHandlersMap contains only one callback 2019-03-14 05:43:07 +01:00
Sense545 595625c853 Fixed bug where passing null to expiresDate failed 2019-01-25 17:55:18 +01:00
Joao Paulo Marquesini a9bcbe1f86 fixing a problem in safari webview and adding tabs to examples 2018-12-07 17:52:24 -02:00
pichillilorenzo a5a784dd05 init iOS inline webview implementation 2018-11-13 12:02:20 +01:00
pichillilorenzo f02791f478 v0.5.51 2018-11-07 01:40:16 +01:00
pichillilorenzo b043b435d2 v0.5.5 2018-11-07 01:11:27 +01:00
pichillilorenzo 53e9ecbfa2 v0.5.4, updated docs and README.md 2018-10-30 23:59:17 +01:00
pichillilorenzo 305c726274 added WebHistory and WebHistoryItem class, added getCopyBackForwardList, goBackOrForward, canGoBackOrForward and goTo methods for InAppWebView and InAppBrowser, updated docs 2018-10-30 01:39:07 +01:00
pichillilorenzo ab7b1b68ad added and class, added method for and 2018-10-29 22:02:59 +01:00
pichillilorenzo 098adfc1dd updated README.md, v0.5.3 2018-10-28 01:16:03 +02:00
pichillilorenzo e2b091b22c updated docs 2018-10-27 21:11:10 +02:00
pichillilorenzo ac962a59d7 completed CookieManager class #8 #3 2018-10-27 21:07:00 +02:00
pichillilorenzo 40dccfde53 added getCookies() and getCookie() for Android 2018-10-25 00:25:11 +02:00
pichillilorenzo 35233f09e5 working on CookieManager class (Manage cookies #8) 2018-10-24 01:02:33 +02:00
pichillilorenzo ec348cd8a0 v0.5.2 2018-10-23 01:45:42 +02:00
pichillilorenzo 2c7e3c8cda updated README.md 2018-10-22 02:11:26 +02:00
pichillilorenzo 3668cb4e96 updated README.md 2018-10-22 00:44:59 +02:00
pichillilorenzo 7756aa8622 v0.5.0 2018-10-22 00:41:39 +02:00
pichillilorenzo 99ff84c617 v0.4.1 2018-10-18 01:38:36 +02:00
pichillilorenzo 860a42e2ba v0.4.0 2018-10-16 01:27:58 +02:00
pichillilorenzo c7356f33c8 fixed WebView.storyboard path for iOS, added v0.3.2 2018-10-14 13:58:42 +02:00
pichillilorenzo 88d88bd11d fixed onLoadResource, added InAppBrowser.addJavaScriptHandler() and InAppBrowser.removeJavaScriptHandler() methods, v0.3.0 2018-10-13 21:12:32 +02:00
pichillilorenzo b4e3e73bce updated onLoadResource method, InAppBrowser.open url parameter has the default value: 'about:blank' 2018-10-13 03:16:08 +02:00
pichillilorenzo d696ed1e68 fixed WebView.storyboard to iOS deployment target 8.0, added onLoadResource method 2018-10-12 03:46:33 +02:00
pichillilorenzo f032b7f635 v0.2.1, fixed InAppBrowser.injectScriptCode() method when there is not a return value, added InAppBrowser.onConsoleMessage() method to manage console messages #5 2018-10-10 01:52:27 +02:00
pichillilorenzo db65f7a042 updated README.md and documentation 2018-10-05 13:18:28 +02:00
pichillilorenzo bc47fd2471 added the ability to create multiple instances of browsers 2018-09-30 21:52:56 +02:00
pichillilorenzo 5db9575a6f added initial support of SFSafariViewController for iOS, updated ChromeCustomTabs for android, added initial version of _ChannelManager dart class 2018-09-26 02:56:56 +02:00
pichillilorenzo 4d3a17890e fixed webview closing on android 2018-09-24 01:53:22 +02:00
pichillilorenzo aa583ad68a added shouldOverrideUrlLoading method 2018-09-23 21:38:31 +02:00
pichillilorenzo 5978aba78f fix hidden attribute, added isHidden() method 2018-09-23 18:35:32 +02:00
pichillilorenzo 57e1a86bdc fixed loading error handling for android and iOS 2018-09-22 14:54:21 +02:00
pichillilorenzo 4ebdba09d1 removed download method, injectScriptCode now returns result of the code injected #2, code cleanup 2018-09-22 13:51:07 +02:00
pichillilorenzo 9c30ed7781 updated android code, code cleanup, added new API 2018-09-20 02:48:24 +02:00
pichillilorenzo e0982e369c updating Android 2018-09-19 04:10:00 +02:00
pichillilorenzo 802663abce updated Swift code, using storyboard for iOS, code cleanup, updated iOS options 2018-09-18 03:07:12 +02:00
pichillilorenzo 155ffa8198 first commit 2018-09-14 02:21:51 +02:00