Implementing an OAuth2 login flow in WKWebView
Nicholas Solter
162

I get only “http” or “about:blank” scheme and that is not useful when dealing with redirects, as you understand. Try that site: http://www.101greatgoals.com/ It has many redirects at start so you can test your code and see that it is working/not working whether it is a redirect or user click. Your code doesn’t distinguish them. To distinguish that solution http://stackoverflow.com/questions/2899699/uiwebview-open-links-in-safari/12697098#12697098 will work. It’s not universal, but I didn’t find anything else on it. WIll be glad if you share something else on how to distunguish user click and internal navigation (redirect for example)

Show your support

Clapping shows how much you appreciated Mikhail Tokarev’s story.