Reputation: 37
I have a mobile app, which is linking to Amazon products within the in-app Safari browser (so that the user will stay inside the application), but I don't know if this in-app browser supports cookies, which is needed for an affiliate link to work.
If it doesn't support cookies by default, can I change that?
Upvotes: 3
Views: 2481
Reputation: 776
It does, yeah. You should set
[NSHTTPCookieStorage sharedHTTPCookieStorage].cookieAcceptPolicy =
NSHTTPCookieAcceptPolicyAlways;
to make sure that it always uses cookies if that's what you want.
Upvotes: 1