CRAlpha / react-native-wkwebview

WKWebview Component for React Native
MIT License
642 stars 271 forks source link

WKWebView and Safari cookie #32

Closed agat closed 7 years ago

agat commented 7 years ago

WebView does not see any cookies from Safari. This is bug?

Additional Information

React Native version: 0.36.1 Platform: iOS

insraq commented 7 years ago

As far as I understand, cookies are not shared between apps. So your WKWebView will not be able get cookies from Safari http://stackoverflow.com/questions/2520331/understanding-nshttpcookiestorage-for-the-iphone

However, SFSafariViewcontroller shares cookies with Safari: https://developer.apple.com/reference/safariservices/sfsafariviewcontroller