Skip to content

michelsondan/DanGoogleOauth

Repository files navigation

Example demonstrating how to use Google's OAuth with PhoneGap

Running the example

  1. Create an application at Google's API console, and create an installed application client ID.
  2. Copy your client ID, client secret, and set your desired authorization scopes in www/js/index.js
  3. Clone this repo, and run npm install
  4. Add a platform, for example ios cordova platform add ios
  5. Build the platform's project cordova build ios
  6. Launch the platform's simulator cordova emulate ios