fluttercommunity / fluttercommunity/flutter_webview_plugin

cleanCookies does not work on iOS

Offen
#641 5 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
1.5k
Forks
938
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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!

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.