developercoolio
developercoolio

Reputation: 37

Does the in-app Safari browser support cookies for affiliate links?

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

Answers (1)

Joey Clover
Joey Clover

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

Related Questions