Getting all cookies from WKWebView
Finally, httpCookieStore
for WKWebsiteDataStore
landed in iOS 11.
https://developer.apple.com/documentation/webkit/wkwebsitedatastore?changes=latest_minor
WKWebView, get all cookies
I ended with simple "force-like" saving Cookie from webpage.
To get all cookie i use
stringByEvaluatingJavaScriptFromString
with JS string like document.cookie();
. As result i able to receive all cookies as a string with ;
separator. All i need to do - parse string, create cookie and set it to NSHttpSharedStorage
Related Topics
Uitextfield's Numerical Pad: Dot Instead of Comma for Float Values
Set the Maximum Character Length of a Uitextfield in Swift
How to Change the Status Bar Background Color and Text Color on iOS 13
How to Ignore Touch Events and Pass Them to Another Subview'S Uicontrol Objects
Codesign Error: Provisioning Profile Cannot Be Found After Deleting Expired Profile
How to Implement Method Swizzling Swift 3.0
Nsinternalinconsistencyexception', Reason: 'Could Not Load Nib in Bundle: 'Nsbundle
How to Programmatically Sense the Iphone Mute Switch
When Should We Use "Embedded Binaries" Rather Than "Linked Frameworks" in Xcode
Correct Singleton Pattern Objective C (Ios)
Making Gcm Work for iOS Device in the Background
How to Pass Data Using Notificationcenter in Swift 3.0 and Nsnotificationcenter in Swift 2.0
How to Save Local Data in a Swift App
Is This Possible to Apply the Alternative Icon to the iOS Application
Layout Issues After Updating to Xcode 8