fluttercommunity / fluttercommunity/flutter_webview_plugin

cleanCookies does not work on iOS

Open
#641 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

## System info

Issue occurs on: iOS
Plugin version: 0.3.10+1
Flutter doctor output:

```
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-UA)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Android Studio (version 3.5)
[✓] Connected device (3 available)

```

## Steps to Reproduce

1. Use WebviewScaffold's clearCookies property or FlutterWebviewPlugin.cleanCookies method.

Currently it's not possible to drop cookies when webview is not on the screen using iOS device.
There is a check in FlutterWebviewPlugin.m#cleanCookies - if (self.webview != nil) despite it does not depend on current webview instance.
Also there is no result when calling FlutterWebviewPlugin.cleanCookies if self.webview is null or iOS version < 9.

Are there any reasons it checks if the webview is instantiated? It works as expected on Android and should have same behaviour on different platforms.

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.