Cordova Google Authentication Tutorial

Cordova plugin google plugin enable google authentication for your Cordova (aka PhoneGap) applications. we can gather user name, email, dob..etc from Google.we can also do silent login with G+.

Advantages:

  • High Conversion Rate
  • No passwords & Signup

Add Plugin

<code class="language-bash">cordova plugin add https://github.com/EddyVerbruggen/cordova-plugin-googleplus --save --variable REVERSED_CLIENT_ID=reversedclientid</code>

Note: reversed client id without “double quotes”

Cordova plugin google plus example source code

window.plugins.googleplus.login({
    //options if any
}, function(result) {
    alert(JSON.stringify(result));
}, function(error) {
    alert(JSON.stringify(error));
});

Read More:

https://github.com/EddyVerbruggen/cordova-plugin-googleplus