Android Tutorial Google SignIn Using WebView

I was in need of google sign in using PlayServices but cant find any wrapper for that in b4a,Then i found this solution.

Purpose of the Sign in app is to fetch details about the google account holder who is using the app.

I have modified the gmailContacts App https://www.b4x.com/android/forum/threads/oauth-2-0-google-web-services-tutorial.14517/ to get info about google user.

Details collected are email,name,profilePic,locale,gender,given name,family name,id.

Signin App uses httputilis2 instead of old method used in the gmailContacts App.

To use App you need to have clientid and clientsceret keys which can be obtained by creating Auth API credential (select application type as other) . I have given sample clientid and clientsecret which work for testing

go here to manage your projects https://console.developers.google.com/project

Thanks @Erel for the OAth2 sample Project
 

Attachments

  • googleSignin.zip
    441.1 KB · Views: 584
Top