Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable portable cookie handling on iOS and Android. #106

Merged
merged 1 commit into from
Feb 8, 2015

Conversation

sebfia
Copy link
Contributor

@sebfia sebfia commented Nov 26, 2014

Made native cookie handling possible for iOS and Android, by introducing the NativeCookieHandler class instead of using the (strange) .NET CookieContainer. NativeCookieHandler is set to null by default in order to not break the current API.

@beeradmoore
Copy link

I don't think I am following this correctly, but how does adding the NativeCookieHandler to the NativeMessageHandler constructor do anything if you don't use the cookieHandler value for anything? Is more work needed to get this finished or is the fact that you are using NSHttpCookieStorage.SharedStorage and CookieManager that the native calls will just auto grab/store/use/update cookies in their own systems.

If that is the case does it even need to be in the constructor at all, wouldn't just having this object exist do the trick?

@anaisbetts
Copy link
Owner

the fact that you are using NSHttpCookieStorage.SharedStorage and CookieManager that the native calls will just auto grab/store/use/update cookies in their own systems.

^^ That one, he's using the Bait And Switch pattern, which reads a bit clever in diffs because you see dummy classes in the diff that never actually get used

@anaisbetts
Copy link
Owner

Also, I'm not sure why I missed this! Sorry @sebfia, I'll review this soon and get it merged

@beeradmoore
Copy link

Any reason to leave it in the constructor then?

anaisbetts added a commit that referenced this pull request Feb 8, 2015
Enable portable cookie handling on iOS and Android.
@anaisbetts anaisbetts merged commit d835eca into anaisbetts:master Feb 8, 2015
@anaisbetts
Copy link
Owner

Thanks @sebfia!

@DavidPotter
Copy link

It look like the question about specifying it in the constructor never got answered. What does that do exactly? It looks like it is never referenced in the constructor, so why pass it in at all?

Also, is there an example of using the NativeCookieHandler class (ideally on iOS)?

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

Successfully merging this pull request may close these issues.

4 participants