Our application authenticates to the server. The server sets a 'JSESSIONID' cookie. The cookie is used by the server for session management.
The issue is WKWebView does not send this cookie back to the server on subsequent requests. However, this only happens on first execution of the application, after its installation. Once the application closed and re-opened, the cookies are properly sent and authentication completes successfully.
The problematic behavior is consistent, and was observed on several devices. On the other hand, there are no such issues with UIWebView.