0

How to reset/remove cookies in a SFSafariViewController ? Nothing seems available in class documentation. Any advice to reset the cookies ?

fvisticot
  • 7,936
  • 14
  • 49
  • 79
  • My answer here might be helpful: http://stackoverflow.com/a/40163331/2736038 basically if you want to delete the cookies make the page you land on do that. – Brian F Leighty Oct 20 '16 at 19:58

1 Answers1

1

SFSafariViewConroller's cookies are shared with Safari.

Meaning cookies can be reset in Settings by resetting Safari's cookies.

Hope this helps,

Liam

Liam Ferris
  • 1,786
  • 2
  • 18
  • 38
  • Not very user friendly... I would prefer an "application/API" solution.. any other idea ? – fvisticot Feb 13 '16 at 18:19
  • Didn't realise you meant during use. Only thing I can think of, of the top of my head is injecting some javascript? https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/InjectingScripts/InjectingScripts.html – Liam Ferris Feb 13 '16 at 20:45
  • I clear it up by going to Safari settings, but it would be nice if we can do it on the app. – plasma Jun 28 '17 at 18:30