不能使用UIWebView(iOS)自动登录Google+吗? [英] Not automatically login to Google+ using UIWebView (iOS)?

查看:100
本文介绍了不能使用UIWebView(iOS)自动登录Google+吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我有一个关于使用UIWebView进行身份验证的问题.

  • I have a question about authentication with UIWebView.

我想在plus.google.co中登录Webview

I want to login in webview in plus.google.co

我在Google上登录了一次,如
所示 https://developers.google.com/+/mobile/ios/sign-in

I sign in in google plus one time as shown in
https://developers.google.com/+/mobile/ios/sign-in

当用户在UIWebView中再次进入google +页面时,程序应自动 登录并保存用户的会话.但实际上它并没有保持登录状态.尽管用户一次在我的应用程序中登录Google+,但我如何保持用户登录google +.

When user go to google+ page again in UIWebView then program should be automatically logged in and save the user's session. But in fact it is not keep logged in.How can i keep user logged in for google+ although user is one time sign in for Google+ in my application.

我还检查了以下条件:[[GPPSignIn sharedInstance] 身份验证],并返回true,表明我已经登录.但是当我通过推送新的ViewController来登录uiwebview时,它要求我登录.

I also checked condition for this as :[[GPPSignIn sharedInstance] authentication] and it return true that i am logged in already.but when i checked in uiwebview by pushing new ViewController then it ask me to sign in.

当我在iPhone的Safari浏览器中打开plus.google.com时,它会向我显示 作为登录用户.

And When i open plus.google.com in safari in iPhone then it show me as a login user.

我搜索了很多,但是找不到答案.请帮助我 这个.

I searched a lot but can not find an answer.please help me out from this.

推荐答案

如果我正确理解了您的问题,则说明您已经使用iOS SDK实现了登录,但是您希望按照以下说明启用移动网络浏览器的登录:

If I understand your question correctly you have implemented sign in with the iOS SDK, but you would like to enable sign in for your mobile web browser following these instructions:

https://developers.google.com/+/mobile/ios/登录

这些用于本机iOS应用程序.要实现针对移动网络的登录,您应该按照以下说明在网络上登录:

These are for a native iOS application. To implement sign in for mobile web you should follow the instructions for sign in on the web:

https://developers.google.com/+/web/signin/

很抱歉,如果这样做不能直接回答您的问题,但如果不能解决,请提供有关您的问题的更多详细信息.

Sorry if this doesn't answer your question directly, but if it doesn't please give more details about your problem.

这篇关于不能使用UIWebView(iOS)自动登录Google+吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆