From c79558ae839a5f2afb0684261d86f01f45df5f50 Mon Sep 17 00:00:00 2001 From: "brian.lin" Date: Wed, 17 Jun 2020 18:23:35 +0800 Subject: [PATCH] solve the issue webview bottom bar is shown for iOS 12.3 and later versions --- ios/Classes/MyCookieManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/MyCookieManager.swift b/ios/Classes/MyCookieManager.swift index 11fabcd1d..5a2e86e50 100755 --- a/ios/Classes/MyCookieManager.swift +++ b/ios/Classes/MyCookieManager.swift @@ -119,7 +119,7 @@ class MyCookieManager: NSObject, FlutterPlugin { // The following code could ensure the `completionHandler` will be called after cookie setup. // ref: https://forums.developer.apple.com/message/309275 // ref: https://bugs.webkit.org/show_bug.cgi?id=185483 - guard #available(iOS 13.0, *) else { + guard #available(iOS 12.3, *) else { WKWebsiteDataStore.default().fetchDataRecords(ofTypes: [WKWebsiteDataTypeCookies]) { _ in } return }