Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (23 loc) · 1.3 KB

File metadata and controls

36 lines (23 loc) · 1.3 KB

Google provider implementation

Go back to README

  • Start with installation steps on README page.
  • Install required package via npm:

(Don't be confused by google-plus in package name, package already uses new Google API, not deprecated Google Plus API)

npm install @ionic-native/google-plus
  • Go to Firebase → select your project → Authentication → Sign-in method → Google → Enable → Choose your support email → Save

  • Go to Google APIs Console → Credentials. Select a different project at the top on left side if needed (select All in project select popup).

  • In OAuth 2.0 Client IDs section select Web client and copy Client ID and use it in next step.

  • Install cordova module package via npm:

(Change WEB_APPLICATION_CLIENT_ID variable to your Client ID (Web client) from Google APIs Console - previous step)

ionic cordova plugin add cordova-plugin-googleplus --variable WEB_APPLICATION_CLIENT_ID="xxx.apps.googleusercontent.com"

Usage

See example project

Frequent errors

  • Error: Uncaught (in promise): 10
    • You don't have sign your app correctly or you have wrong client id in your configuration.