Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Google Plus API - Sharing or Logging In without going to Safari

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

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?.

Any help will be greatly appreciated.

Thanks.

like image 763
Oscar Gomez Avatar asked Dec 11 '22 16:12

Oscar Gomez


1 Answers

Easiest answer is no, as you say. The SDK will actually try to fall back through the following:

  1. Log in via Google+ app (this is the nice result, but requires having the Google+ app installed)
  2. Log in via Chrome
  3. Log in via Mobile Safari

You can control the first part with the attemptSSO flag on the GPPSignIn object - if you set that to NO it wont try to use the Google+ app. You'll generally want it to try the Google+ app first. Sharing always happens via the web (chrome/safari) with the current API version (1.2.1) though.

like image 65
Ian Barber Avatar answered Dec 14 '22 23:12

Ian Barber