Skip to content

Commit dcc00fc

Browse files
sov-oikawainfil00p
authored andcommitted
CB-13347: Enable thirdparty cookies on >=Android 5.0 device
1 parent e9878dd commit dcc00fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/android/InAppBrowser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,11 @@ public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType)
809809
CookieManager.getInstance().removeSessionCookie();
810810
}
811811

812+
// Enable Thirdparty Cookies on >=Android 5.0 device
813+
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
814+
CookieManager.getInstance().setAcceptThirdPartyCookies(inAppWebView,true);
815+
}
816+
812817
inAppWebView.loadUrl(url);
813818
inAppWebView.setId(Integer.valueOf(6));
814819
inAppWebView.getSettings().setLoadWithOverviewMode(true);

0 commit comments

Comments
 (0)