Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
#45 login and trySilendLogin now return userdata on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Apr 16, 2015
1 parent 769dd15 commit 506f376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="nl.x-services.plugins.googleplus"
version="1.1.0">
version="1.1.1">

<name>Google+</name>

Expand Down
8 changes: 4 additions & 4 deletions src/android/GooglePlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ public boolean execute(String action, CordovaArgs args, CallbackContext callback

} else if (ACTION_LOGIN.equals(action)) {
this.trySilentLogin = false;
mGoogleApiClient.connect();
mGoogleApiClient.reconnect();

} else if (ACTION_TRY_SILENT_LOGIN.equals(action)) {
this.trySilentLogin = true;
mGoogleApiClient.connect();
mGoogleApiClient.reconnect();

} else if (ACTION_LOGOUT.equals(action)) {
try {
Expand Down Expand Up @@ -124,8 +124,8 @@ private void resolveToken(final String email, final JSONObject result) {

cordova.getThreadPool().execute(new Runnable() {
public void run() {
String scope = null;
String token = null;
String scope;
String token;

try {
if (GooglePlus.this.webKey != null){
Expand Down

0 comments on commit 506f376

Please sign in to comment.