2

In my application, written in Swift 4, I retrieve the cookies session from wkwebview with this code:

webView.configuration.websiteDataStore.httpCookieStore.getAllCookies({ (cookies) in
    for cookie in cookies {
          //cookie      
    }
})

By necessity I had to lower the deploy target from 11 to 10.1, but

httpCookieStore is only available on iOS 11.0 or newer

I can not find a way compatible with version 10.1 to do the same thing.

rmaddy
  • 307,833
  • 40
  • 508
  • 550
Marco
  • 711
  • 3
  • 16

0 Answers0