setAcceptThirdPartyCookies method
Sets whether the WebView should allow third party cookies to be set.
Apps that target Build.VERSION_CODES.KITKAT
or below default to allowing
third party cookies. Apps targeting Build.VERSION_CODES.LOLLIPOP
or
later default to disallowing third party cookies.
Implementation
Future<void> setAcceptThirdPartyCookies(
AndroidWebViewController controller,
bool accept,
) {
// ignore: invalid_use_of_protected_member
final WebView webView = _cookieManager.pigeon_instanceManager
.getInstanceWithWeakReference(controller.webViewIdentifier)!;
return _cookieManager.setAcceptThirdPartyCookies(webView, accept);
}