fluttercommunity / fluttercommunity/flutter_webview_plugin

cleanCookies does not work on iOS

Đang mở
#641 5 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
1.5k
Fork
938
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.