12856

From IOS 13.0 cookiesDidChange is never triggered when cookies change on webview

<h3>Question</h3>

I am using Cookie Store Observer to to track changes in the cookies value on my webview. It was working fine on all versions of IOS. but since IOS 13.0 came out, this no longer works. I am not getting any call to

@available(iOS 11.0, *) func cookiesDidChange(in cookieStore: WKHTTPCookieStore){ cookieStore.getAllCookies { cookies in //Store cookies to UserDefaults on Background Thread DispatchQueue.global(qos: .userInitiated).async { self.storeCookies(cookies: cookies) } } }

I am setting cookie observer before the web-view is created.

WKWebsiteDataStore.default().httpCookieStore.add(self)

All of a sudden it stopped working from IOS 13.0. I havent noticed any change in docs around this API.

Anybody have any info on it on IOS 13.0?

来源:https://stackoverflow.com/questions/58397343/from-ios-13-0-cookiesdidchange-is-never-triggered-when-cookies-change-on-webview

Recommend

  • How to properly use create_anonymous_client() function in google cloud storage python library for ac
  • text-align: right has margin or buffer in Chrome
  • How to get an MP3 bit rate in SWIFT
  • I'm using let keyword in for loop gives SyntaxError: Unexpected identifier
  • Youtube iframe api allow=“autoplay” Chrome 65
  • Rails 4 - How to have image upload in froala editor with carrierwave?
  • HTML5 video, poster img doesnt show in IE
  • How can configuration tools like sdl-config be used with a cabalized project?
  • What is difference between MessageBoxIcon.Exclamation and MessageBoxIcon.Warning?
  • LINQ throwing invalid cast exception on a bigint
  • PyDev code analysis missing
  • MVC map to nullable bool in model
  • MultiDexApplication not recognized
  • Java - Ordering array values from highest to lowest [closed]
  • Order items in a JS tracking code on Order received page in Woocommerce
  • convert jquery to pure javascript in ajax
  • Printing HTML content [duplicate]
  • Use of `get` and `toSqlKey` in persistent
  • redirecting domain.com to www.domain.com in Apache 2
  • amcharts line to be changed with different color if it goes down to the other line(after intersectin
  • Increment counter with Cloud Functions for Firebase
  • how to get the log likelihood for a logistic regression model in sklearn?
  • pip not installing any package with warnings “ InsecurePlatformWarning, SNIMissingWarning” [duplicat
  • Mounting Windows drives to access from Docker
  • remove empty elements from DOM
  • How to autofill Edit form with old Information of a user?
  • Material Transitions in pre lollipop apps
  • flutter navigation to new screen not working
  • Mapping google maps coordinate from a javascript variable
  • AngularJS TypeError: Converting circular structure to JSON at Object.stringify (native)
  • Lambda Expression for Many to Many realtionship in C# EF 5 Code First
  • MySQL equivalent to MS SQL's Cross Apply
  • no endpoints available for service \\“kubernetes-dashboard\\”
  • Eric5: The OK button of 'new project' dialog is disable
  • Refresh JSF component after custom javascript Ajax call
  • Tkinter tkMessageBox disables Tkinter key bindings
  • Shiny - change the size (padding?) of dropdown menu (select tags) smaller
  • How to call different template for different category archive page in woocommerce