DEV Community

Ilya Minichev
Ilya Minichev

Posted on

WKWebView persistent cookies open source solution and other useful things for WKWebView

iOS WKWebView webview App Template with fully working persistent cookies functionality (httpcookie, web cookie, browser cookie), custom status bar background color, option for white/black status bar text color, option to disable pinch to zoom and double tap to zoom in webview

You have probably noticed that by default iOS WKWebView resets all cookies if you swipe app off memory or every time app is reloaded and new app session started

This WKWebView app template has a solution and a fix to preserve and save cookies to provide expected functionality from web apps

README.md also includes instruction how hide visibility of scroll bar and enable iOS smooth scrolling (you do it in CSS code of your web content, not in the Swift part of the iOS app)

GitHub public repository ilyaminichev/iOSWKWebViewAppTemplatePersistentCookiesWorkLikeACharm

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay