Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"An internal error occurred" with integration of Google Plus Login

I am trying to integrate a Google plus Login in my application as per the instruction provided by following link : https://developers.google.com/+/quickstart/android#install-sdk

I am following all the instructions perfectly. And when I run the sample application on a real device provided in the android-sdk and click the signin button, it display a Toast message that An internal error occurred

What am I doing wrong?

like image 328
Hardik Nadiyapara Avatar asked Apr 02 '13 11:04

Hardik Nadiyapara


3 Answers

I have this problem and even after creating 10 different client IDs with different SHA and package name, it doesn't work... until I found out that you have to fill the Consent screen.

According to GoogleDevelopers Console -

The consent screen will be shown to users whenever you request access to their private data using your client ID.

Consent screen

like image 174
mihirjoshi Avatar answered Oct 18 '22 16:10

mihirjoshi


This can happen when you haven't set the signature for the client ID in your API console project, or if you copied the wrong key value from keytool. Doing so is documented in the steps of the quick start guide on steps 7, 8, 9, and 10.

like image 31
Vic Fryzel Avatar answered Oct 18 '22 16:10

Vic Fryzel


I've solved problem by removing .setScopes("PLUS_LOGIN") in the PlusClient.Builder.

like image 16
marcogramy Avatar answered Oct 18 '22 16:10

marcogramy