After putting in these files in my project, WKWebView is refreshing on every close of dialog or modal windows. When I comment out the registerSchemeClass call, it works fine. So just wanted to know if someone else had faced this issue, and if yes, how was it solved?