WKWebview in Cookies does not retain - Cordova InApp Browser

I am integrating(SAML & OIDC) for authentication in Cordova iOS project using Cordova inapp browser plugin. This plugin internally uses WKWebView.

After successful loggedIn, The WKWebview gets close automatically. If the user open again the WKWebview , it shows the login page since it does not maintain the session / cookies / Session caches.

But If minimize the WKWebview and open, it retains all the data and works as expected.

If the WKWebview close and open, it considers as new instance

Will it possible to retain or is this behaviour / limitation of iOS-WKWebview?

Do I need to change any settings in server?

I have tried with retain the WKWebView,cookies,processpool,WKWebViewConfiguration in NSUserDefaults and assigned again to WebView but the issue persists.

What will be the solution for this? Kindly Guide me.

WKWebview in Cookies does not retain - Cordova InApp Browser
 
 
Q