我有一个iOS应用程序,基本上使用WkWebView运行移动网站.在移动网站中,用户可以使用Google帐户登录.
由于google will not allow WebViews to use Google Sign in已经存在,我如何登录我的用户?
我想到两个解决方案:
>拦截谷歌登录URL(account.google.com/)并打开一个SFSafariViewController然后以某种方式在我的WkWebView中获取回调?
>拦截谷歌登录URL并使用在SDsafariViewController上转发的谷歌登录SDK,但只给我一个userToken,我必须发送到我的网站并在服务器端验证用户.