Hi Team,
I'm trying to understand the behavior of the following API:
HTTPCookieStorage.shared.setCookies(_:for:mainDocumentURL:)
Specifically, does this API persist cookies synchronously, or does it perform the storage asynchronously in the background?
Our use case is storing FCAP (frequency capping) cookies so they persist across app sessions. We call setCookies(_:for:mainDocumentURL:) and want to know whether the cookies are guaranteed to be written before the method returns, or if the actual persistence happens asynchronously.
I couldn't find documentation describing the persistence semantics of this API, so I'd appreciate any clarification or guidance from Apple or anyone familiar with its implementation.
Thanks
1
0
88