Relative Content

Tag Archive for google-oauthwkwebviewios17mobile-webkit

WKWebView OAuth popup misses window.opener in iOS 17.5+

In my project, I’m using the WKWebView to display the Google OAuth popup. After it appears, the JS window.opener is null, and because of that, the original window cannot receive an auth token in a callback. This works perfectly fine in iOS 17.0 and earlier, but broken starting from 17.5. I’ve tested on the 18.0 too – same results the opener is always null no matter what I try.

WKWebView OAuth popup misses window.opener in iOS 17.5+

In my project, I’m using the WKWebView to display the Google OAuth popup. After it appears, the JS window.opener is null, and because of that, the original window cannot receive an auth token in a callback. This works perfectly fine in iOS 17.0 and earlier, but broken starting from 17.5. I’ve tested on the 18.0 too – same results the opener is always null no matter what I try.