{"id":24331207,"url":"https://github.com/sujith3g/meteor-g-plus","last_synced_at":"2025-09-27T17:30:56.029Z","repository":{"id":33506772,"uuid":"37152739","full_name":"sujith3g/meteor-g-plus","owner":"sujith3g","description":"Meteor google plus login example using hedcet:cordova-google-plus-native-sign-in","archived":false,"fork":false,"pushed_at":"2017-05-27T13:33:49.000Z","size":16996,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T12:54:29.317Z","etag":null,"topics":["android","cordova-google","google-login","google-plus","meteor"],"latest_commit_sha":null,"homepage":"https://atmospherejs.com/hedcet/cordova-google-plus-native-sign-in","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sujith3g.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-09T19:13:51.000Z","updated_at":"2019-08-18T16:46:12.000Z","dependencies_parsed_at":"2022-08-24T13:21:13.660Z","dependency_job_id":null,"html_url":"https://github.com/sujith3g/meteor-g-plus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujith3g%2Fmeteor-g-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujith3g%2Fmeteor-g-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujith3g%2Fmeteor-g-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujith3g%2Fmeteor-g-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujith3g","download_url":"https://codeload.github.com/sujith3g/meteor-g-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234448549,"owners_count":18834248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cordova-google","google-login","google-plus","meteor"],"created_at":"2025-01-18T01:18:44.512Z","updated_at":"2025-09-27T17:30:55.501Z","avatar_url":"https://github.com/sujith3g.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova Google Plus native Login implemented in MeteorJS\n\n[![Donate](https://img.shields.io/gratipay/sujith3g.svg)](https://gratipay.com/cordova-google-plus-native-sign-in/) [![ghit.me](https://ghit.me/badge.svg?repo=sujith3g/meteor-g-plus)](https://ghit.me/repo/sujith3g/meteor-g-plus)\n\n#### Description\n\nThis is an example Meteor Android App with native Google Plus Login using [`hedcet:cordova-google-plus-native-sign-in`](https://atmospherejs.com/hedcet/cordova-google-plus-native-sign-in) meteor package.\n\n#### Screenshots\n\n\u003cimg alt=\"Screenshots\" title=\"Meteor-Cordova Google Plus SignIn\" src=\"https://github.com/sujith3g/meteor-g-plus/blob/master/public/screnshots/gplus-login.png\" width=\"256\" height=\"448\"\u003e\n\n#### Demo\n\n* Android [example](https://github.com/sujith3g/meteor-g-plus/tree/master/.APK).\n\n#### Usage\n\n1. Add Android platform to your App `meteor add-platform Android`. You can follow [this](https://github.com/meteor/meteor/wiki/Meteor-Cordova-integration) Documentation.\n\n2. Install `hedcet:cordova-google-plus-native-sign-in` package to your App by typing `meteor add hedcet:cordova-google-plus-native-sign-in`.\n\n3. Add `mobile-config.js` file to your App \u0026 specify an App ID like `com.example.meteor_g_plus`\n \n  ```javascript\n  App.info({\n    author: 'x',\n    description: 'Cordova Google Plus SignIn',\n    email: 'x',\n    id: 'com.example.meteor_g_plus',\n    name: 'example',\n    website: 'https://github.com/x/x',\n    version: '1.0.0',\n});\n  ``` \n4. Now use the App ID(`com.example.meteor_g_plus`) created in step-3 as \"Android package name\" to setup Google Plus API for Android by following [this guide](https://developers.google.com/mobile/add?platform=Android). Once Google Sign-In is enabled Google will automatically create necessary credentials in Developer Console. There is no need to add the generated google-services.json file into your meteor project.\n\n Make sure you execute the `keytool` steps as well or authentication will fail.\n\n5. Create oAuth credential for web-Application in the same project(in google-dev-console created in step 4) for `accounts-google` package. Use the `client ID`, `client Secret` from web-client credentials for `accounts-google` like [this](https://github.com/sujith3g/meteor-g-plus/blob/master/server/config.accounts.js#L14).\n\n\u003cimg alt=\"Screenshots\" title=\"google-dev-console\" src=\"https://github.com/sujith3g/meteor-g-plus/blob/master/public/screnshots/oauth_client.png\" width=\"756\" height=\"448\"\u003e\n\n6. Now in your client side code you can use `Meteor.cordova_g_plus({cordova_g_plus: true});` as shown\n\n##### LogIn\n\n```javascript\nif (Meteor.isCordova) { // signIn through cordova\n    Meteor.cordova_g_plus({\n        cordova_g_plus: true,\n        profile: [\"email\", \"email_verified\", \"gender\", \"locale\", \"name\", \"picture\"],\n        webClientId: 'your-web-client-id'\n      }, (error) =\u003e {\n        if (error) {\n            // error handling code\n        }\n    });\n}\n```\n\n##### Logout\n \n ```javascript\n window.plugins.googleplus.logout((msg) =\u003e {\n    Meteor.logout((error) =\u003e {\n        if (error) {\n            // error handling code\n        }\n    });\n\n    // do something useful\n\n});\n ```\n\n##### Disconnect\n\n```javascript\nwindow.plugins.googleplus.disconnect((msg) =\u003e {\n\n    // do something useful\n\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujith3g%2Fmeteor-g-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujith3g%2Fmeteor-g-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujith3g%2Fmeteor-g-plus/lists"}