Example demonstrating how to use Google's OAuth with PhoneGap
- Create an application at Google's API console, and create an installed application client ID.
- Copy your client ID, client secret, and set your desired authorization scopes in www/js/index.js
- Clone this repo, and run
npm install
- Add a platform, for example ios
cordova platform add ios
- Build the platform's project
cordova build ios
- Launch the platform's simulator
cordova emulate ios