Login with Google - Thunkable/AppInventor

Barreeeiroo
Wed, 26 Oct 2016 11:41:07 +0000
Promote your App

Hi everyone
As I promished yesterday, here it is an example of GoogleLogin with OAuth in AppInventor or Thunkable:

First of all, you must know that it uses a webserver, but it’s not compulsory because I don’t mind to share mine

It uses Google+ API, so the app doesn’t need any additional permissions

#Setup

### google Developer Console optional

1. Register a new project in Google Developers Console

2. Enable Google+ API (in Home>Library>Social Api>Google+ API)

3. Add an OAuth verification screen (in Home>Credentials>OAuth Consent Screen)

4. Request a new Web Credential, and fill the allower URL to your GoogleAuth folder’s path (in Home>Credentials>Credentials>Create Credentials>OAuth Client ID & Select Web application)

####WebServer optional

I recommend to use hostinger.es. It’s a free web hosting service.

1. Upload the files that I’ve attached in the files section

2. Open index.php file and add your credentials

3. Verify that everything is fine

### appinventor

1. Upload the .aia file

2. Change all URLs to your server’s URLs optional

3. Use the data as you want

4. Build the .APK

#USE THE VERSION 2

###Login with Google V2

REFERENCE: GitHub
Video Instructions (just for server setup): YouTube

70 posts - 17 participants