Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Plus iPhone API sign in and share without leaving app

I have integrated the Google+ API in my App for login and sharing posts. Problem with it, is that everything requires you to leave the app and then come back (it uses URL schemes for this). This is not the expected behavior. I would like to know if there is a way to directly open up the login dialog within the my app it self without going to safari.

I really want to avoid going back and forth between safari and my app.

like image 657
swapnil Avatar asked Jul 06 '15 10:07

swapnil


People also ask

Does Google sign in work on iPhone?

To sign in to the Google app with your Google Account: On your iPhone or iPad, open the Google app . Add your Google Account. To add an account for the first time: Tap Sign in.


1 Answers

I just implemented same thing for my application. I have used Google's Sign In SDK. it will present Webview controller inside your app and let you login with your account, after that it will dismiss the Webview controller and call a delegate to get info for user.

Please read and follow the steps from this link, https://developers.google.com/identity/sign-in/ios/

hope it answers the question.

like image 130
Parth Pandya Avatar answered Sep 22 '22 11:09

Parth Pandya