Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

[iOS]getAll and clearAll never resolve/reject on iOS 11.2.x #151

Open
tyleralves opened this issue Jul 10, 2019 · 2 comments
Open

[iOS]getAll and clearAll never resolve/reject on iOS 11.2.x #151

tyleralves opened this issue Jul 10, 2019 · 2 comments

Comments

@tyleralves
Copy link

tyleralves commented Jul 10, 2019

OS: iOS
Device: iPhone 7 Plus
Version: 11.2.x
Library Version: 3.3.0 (npm latest)

getAll and clearAll usually hang and never resolve/ reject. This is because of a bug in iOS 11.2.x where the callbacks for HttpCookieStore native methods are never called.

It is a well reported bug on stackoverflow:
https://stackoverflow.com/questions/49452968/wkhttpcookiestore-setcookie-completion-handler-not-called
https://stackoverflow.com/questions/54246400/wkhttpcookiestore-getallcookies-doesnt-always-call-completionhandler/54261605

@tyleralves
Copy link
Author

#150 fixes the bug in clearAll by avoiding WKHttpCookieStore::getAllCookies

@safaiyeh
Copy link

safaiyeh commented Jan 2, 2020

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants