We have an application where we use UIWebView to display HTML content. Some HTML content is restricted to so user need to pass the authentication process using webservice. Once user is authenticated, the cookies stored in app and UIWebView is used it for future reference.
The HTML content has links with same and different domain. When user tap on link, app opens in-app browser so user won't distract from it's original article. We don't have control over embedded links so links can be HTTP or HTTPS. So we decided to use SFSafariViewController so HTTP and HTTPS links could open.
The user is already authenticated and can access content in UIWebView. Now the issue is, SFSafariViewController doesn't use the app cookies and ask user to authenticate again.
Any solution to solve this issue? Thanks in advance.