Commit Graph

285 Commits

Author SHA1 Message Date
Lorenzo Pichilli 069594a8cf
Merge pull request #1295 from bagedevimo/allow-no-domain
Allow a cookie without a domain to be set on Android
2022-10-13 19:39:58 +02:00
Lorenzo Pichilli fe62aff576
Merge pull request #1262 from mohenaxiba/master
fix Theme_AppCompat_Dialog_Alert not found
2022-10-13 17:54:07 +02:00
Lorenzo Pichilli d47fb67fef
Update Util.java
Try `getFileAsset` first and then `new FileInputStream`
2022-10-13 17:33:46 +02:00
Lorenzo Pichilli 3c66f19d3f
Merge branch 'master' into master 2022-10-13 17:32:00 +02:00
Lorenzo Pichilli 8889b0d9ae
Merge pull request #1237 from kamilpowalowski/bugfix/android-oreo-crash
fix: Prevent Android java.lang.NullPointerException in InAppWebViewCl…
2022-10-13 17:06:15 +02:00
Lorenzo Pichilli 169bf2d340
Update InAppWebViewClient.java
Added more checks when trying to parse an URL using URI and allow the request to go to the flutter delegate.
2022-10-13 17:03:01 +02:00
Lorenzo Pichilli 89808a2f67
Merge pull request #1233 from initig/fix_no_custom_tab_default_browser
fix: try to open with Chrome if default browser app does not support custom tabs
2022-10-13 16:36:15 +02:00
Lorenzo Pichilli fbc8e5decd updated js code arrayBufferToString 2022-10-13 15:59:50 +02:00
Lorenzo Pichilli cb2f02da04
Merge pull request #1208 from liasica/master
Fix RangeError: Maximum call stack size exceeded
2022-10-13 15:52:35 +02:00
Lorenzo Pichilli 0f9896aedf
Update JavaScriptBridgeJS.java
replaced js arrayBufferToString uint8Array.reduce arrow function with normal function
2022-10-13 15:48:04 +02:00
Lorenzo Pichilli f573f8afe5
Merge pull request #1201 from emakar/fix-android-leak
[Android] fix leaking `MethodChannel` through anonymous class
2022-10-13 15:36:18 +02:00
Lorenzo Pichilli 6abf958b31 Added Android direct camera capture feature 2022-10-13 10:18:08 +02:00
liasica f82a8d413a
Merge branch 'pichillilorenzo:master' into master 2022-10-13 11:02:01 +08:00
Lorenzo Pichilli 25cb58dce7 Fixed Android RendererPriorityPolicy.waivedWhenNotVisible type 'Null' is not a subtype of type 'bool' #1334 2022-10-12 22:09:24 +02:00
Lorenzo Pichilli 4e3c17842d Fixed missing PullToRefreshController.isRefreshing iOS implementation, Fixed Android PullToRefreshController.setEnabled at runtime, Fixed iOS findNext 2022-10-12 21:25:49 +02:00
Lorenzo Pichilli 9557612905 Removed Android unsafe trust manager, fix #593 2022-10-05 17:00:56 +02:00
Kamil Powałowski 93d9b41ed8 fix: Prevent Android java.lang.NullPointerException in InAppWebViewClient.onReceivedHttpAuthRequest view.getUrl() 2022-10-05 10:11:10 +02:00
Lorenzo Pichilli 9a3ae09fb4 added missin return to Util.invokeMethodIfExists 2022-10-04 12:21:50 +02:00
Lorenzo Pichilli f5b474cd3b Added support for Android 33, Fixed possible null pointer exception in Android ChromeCustomTabsActivity.java, fix #1299, fix #1223, fix #1269, fix #1234, close #1307 2022-10-04 12:12:07 +02:00
Ben Anderson a5be2c59be Allow a cookie without a domain to be set on Android
The other CookieManager implementations in Flutter allow for no domain,
as the Android CookieManager implementation. By providing a default
domain, applications cannot opt-out of the default
CookieManager.setCookie behaviour (which prepends a "period" to the
domain), which is treated as a different domain by Webkit on Android.
This leads to multiple cookies for the same URL if the server serves a
cookie without a domain, or with a domain that does not contain a
leading period.

Note, iOS's setCookie doesn't take a url parameter (at least in the way
it's called from flutter_inappwebview) and instead this is passed an
attribute on the HTTPCookie object itself (originURL). When constructing
a HTTPCookie you must supply either originURL OR domain. Both a
permitted, but at least one must be present. [1]

By making domain optional, without a default, on both platforms,
consumers can now set cookies that don't use the domain attribute but
still allows for setting a domain when required.

[1] https://developer.apple.com/documentation/foundation/httpcookie/1392975-init
2022-08-30 15:29:05 +12:00
qinjc 038c64321a fix #1260 issue
fix when gradle.properties set `android.nonTransitiveRClass=true` , `Theme_AppCompat_Dialog_Alert` can not find issue
2022-07-26 12:52:12 +08:00
Akio Yamamoto 5efb54284d
Client certificate from local storage
Added a feature to read a client certificate from local storage.
2022-07-02 16:56:00 +09:00
Eiichiro Adachi 609ce9704a fix: set category to browser search intent to avoid unexpected query result 2022-06-27 15:09:29 +09:00
Eiichiro Adachi 65f0459579 fix: try to open with Chrome if default browser app does not support custom tabs 2022-06-27 13:15:35 +09:00
liasica 4fa28b0798 Fix RangeError: Maximum call stack size exceeded 2022-06-05 00:41:27 +08:00
Eugene Makar bd6e2548fc fix leaking MethodChannel through anonymous class 2022-05-27 09:29:50 +03:00
Lorenzo Pichilli ef9580b287 Fixed possible Android java.lang.NullPointerException in InAppBrowserActivity.onCreateOptionsMenu about webView.getTitle() 2022-05-05 22:00:44 +02:00
Lorenzo Pichilli a6cb4105b1 fix #1173 2022-05-05 21:46:14 +02:00
Lorenzo Pichilli afa3f33328 fix #1168 2022-05-05 21:01:09 +02:00
Lorenzo Pichilli 15ecdc86fb fixed #1166 2022-04-28 20:42:46 +02:00
Lorenzo Pichilli 04b001f499 fix #1159 2022-04-28 17:14:57 +02:00
Lorenzo Pichilli ad04812a6e fix #1159 2022-04-28 13:39:59 +02:00
Lorenzo Pichilli 442b51db0f fix #1155 2022-04-26 13:55:24 +02:00
Lorenzo Pichilli e07ba2a675 fix #1152 2022-04-25 17:39:04 +02:00
Lorenzo Pichilli 951b974dd3 fix #1151 2022-04-25 12:55:35 +02:00
Lorenzo Pichilli f511e4d1f5 Fixed Android default context menu over custom context menu on API Level 31+ 2022-04-23 15:43:57 +02:00
Lorenzo Pichilli 2d31a2f58b Managed iOS native detachFromEngine flutter plugin event and updated dispose methods, Updated Android native HeadlessInAppWebViewManager.dispose and HeadlessInAppWebView.dispose methods 2022-04-23 04:02:37 +02:00
Lorenzo Pichilli ce6e9066ba Fixed Android error in some cases when calling setServiceWorkerClient java method on ServiceWorkerManager initialization 2022-04-22 16:24:41 +02:00
Lorenzo Pichilli 7aade18701 Fixed Android ChromeCustomTabsActivity not responding to the ActionBroadcastReceiver 2022-04-20 03:15:28 +02:00
Alex Li 04f0ce78f9
Update AndroidManifest.xml 2022-04-19 14:58:58 +08:00
Lorenzo Pichilli 254ba1a1b8 using getWebViewLooper API for Android 28+ 2022-04-18 23:57:11 +02:00
Lorenzo Pichilli 2eb31ee74f fix #1137, fix #888 2022-04-18 23:12:17 +02:00
Lorenzo Pichilli 5510fd342f Added support for Android TWA (Trusted Web Activity) 2022-04-17 21:47:35 +02:00
Lorenzo Pichilli c61019058c updated deprecated custom tabs builder method, added shareState android option for ChromeSafariBrowser 2022-04-17 19:05:16 +02:00
Lorenzo Pichilli 621d524dd6 trying to fix android null exception when bundle is null for InAppBrowserActivity and ChromeCustomTabsActivity 2022-04-17 18:22:01 +02:00
Lorenzo Pichilli 1325e6623c merge 2022-04-17 18:15:49 +02:00
Lorenzo Pichilli 489b115038
Merge branch 'develop' into issue_location/build_on_and_support_android_12_sdk_31 2022-04-17 17:32:05 +02:00
Lorenzo Pichilli 22649342e8 added onDownloadStartRequest event 2022-04-17 16:19:31 +02:00
Lorenzo Pichilli 1e287fd1d3 Merge branch 'ashank-patch' of https://github.com/ashank96/flutter_inappwebview into ashank96-ashank-patch 2022-04-16 12:38:52 +02:00
Lorenzo Pichilli 270579898e
Merge pull request #1066 from chownation/patch-1
fix build error https://github.com/pichillilorenzo/flutter_inappwebview/issues/728
2022-04-16 12:18:40 +02:00