Skip to content

How to add observer to WKHTTPCookieStore ? #9984

@SeRgI1982

Description

@SeRgI1982

Hi,

I know that there is an interface IWKHttpCookieStoreObserver but how to use it ?
I have implemented in that way:

        public class CookieStoreObserver : NSObject, IWKHttpCookieStoreObserver
        {
            public void CookiesDidChangeInCookieStore(WKHttpCookieStore cookieStore)
            {

            }
        }

and added to

WKWebsiteDataStore.DefaultDataStore.HttpCookieStore

but it is never called.
I couldn't find any samples in the internet, so this place is my last chance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThe issue or pull request is about documentationiOSIssues affecting iOS

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions