iOS Google Plus API - 无需访问 Safari 即可共享或登录 [英] iOS Google Plus API - Sharing or Logging In without going to Safari

查看:30
本文介绍了iOS Google Plus API - 无需访问 Safari 即可共享或登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我在这个主题上发现的一切都是否定的.

So far everything I've found on the subject, is a NO.

我的应用在用户登录和分享时运行良好,但是这两个操作都需要移动 safari,这对用户来说是一种不太理想的体验,有没有人找到一种方法来分享帖子或登录 Google + 使用一个 UIWebView 或 GET/POST?.

My app works fine when the user logs in and shares, but both actions require mobile safari, which is a less than ideal experience for the user, has anyone found a way to either share a post or log in to Google + using a UIWebView or GET/POST?.

任何帮助将不胜感激.

谢谢.

推荐答案

您可以通过 Google+ 登录 UIWebView.

You can SignIn via Google+ into UIWebView.

 GTMOAuth2ViewControllerTouch *_googlePlusCtrl = [[GTMOAuth2ViewControllerTouch alloc]
                                                   initWithScope:@"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me"
                                                   clientID:GOOGLE_PLUS_CLIENT_ID
                                                   clientSecret:GOOGLE_PLUS_CLIENT_SECRET
                                                   keychainItemName:@"GooglePlus_Sample_App"
                                                   delegate:self
                          finishedSelector:@selector(viewController:finishedWithAuth:error:)];

希望对你有帮助.

这篇关于iOS Google Plus API - 无需访问 Safari 即可共享或登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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