Coder Social home page Coder Social logo

sujith3g / meteor-g-plus Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 16.6 MB

Meteor google plus login example using hedcet:cordova-google-plus-native-sign-in

Home Page: https://atmospherejs.com/hedcet/cordova-google-plus-native-sign-in

HTML 20.03% JavaScript 79.97%
android cordova-google google-login google-plus meteor

meteor-g-plus's Introduction

Hi there 👋

meteor-g-plus's People

Contributors

hedcet avatar sujith3g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

meteor-g-plus's Issues

Can not start on android mobile devices

Hi, I followed all the steps very carefully and it seems I did it right.

However, when I try to start the app meteor run android-device --settings ./settings/settings-development.json, here is the error I get agter the server is launched, when the app is being loaded and started on the device (LG G4)

Errors executing Cordova commands:         
                                              
   While running Cordova app for platform Android with options --device:
   Error: Command failed:                     
   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/cordova/run
   --device
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.

   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/GooglePlus.java:325:
   error: cannot find symbol
   result.put("familyName",
   acct.getFamilyName());
   ^
   symbol:   method getFamilyName()
   location: variable acct of type GoogleSignInAccount

   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/GooglePlus.java:326:
   error: cannot find symbol
   result.put("givenName",
   acct.getGivenName());
   ^
   symbol:   method getGivenName()
   location: variable acct of type GoogleSignInAccount
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.
   2 errors
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':compileArmv7DebugJavaWithJavac'.
   > Compilation failed; see the compiler error output for details.
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or
   --debug option to get more log output.
   { [Error:
   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/gradlew:
   Command failed with exit code 1 Error output:
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.

   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/GooglePlus.java:325:
   error: cannot find symbol
   result.put("familyName",
   acct.getFamilyName());
   ^
   symbol:   method getFamilyName()
   location: variable acct of type GoogleSignInAccount

   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/GooglePlus.java:326:
   error: cannot find symbol
   result.put("givenName",
   acct.getGivenName());
   ^
   symbol:   method getGivenName()
   location: variable acct of type GoogleSignInAccount
   Note: Some input files use or override a deprecated API.
   Note: Recompile with -Xlint:deprecation for details.
   Note: Some input files use unchecked or unsafe operations.
   Note: Recompile with -Xlint:unchecked for details.
   2 errors
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':compileArmv7DebugJavaWithJavac'.
   > Compilation failed; see the compiler error output for details.
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or
   --debug option to get more log output.] code: 1 } 'Error:
   /home/fen/talkalang/.meteor/local/cordova-build/platforms/android/gradlew:
   Command failed with exit code 1 Error output:\nNote: Some input files use or
   override a deprecated API.\nNote: Recompile with -Xlint:deprecation for
   details.\nNote: Some input files use or override a deprecated API.\nNote:
   Recompile with -Xlint:deprecation for
   details.\n/home/fen/talkalang/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/GooglePlus.java:325:
   error: cannot find symbol\n                result.put("familyName",
   acct.getFamilyName());\n                                             ^\n
   symbol:   method getFamilyName()\n  location: variable acct of type
   GoogleSignInAccount\n/home/fen/talkalang/.meteor/local/cordova-build/platforms/android/src/nl/xservices/plugins/GooglePlus.java:326:
   error: cannot find symbol\n                result.put("givenName",
   acct.getGivenName());\n                                            ^\n
   symbol:   method getGivenName()\n  location: variable acct of type
   GoogleSignInAccount\nNote: Some input files use or override a deprecated
   API.\nNote: Recompile with -Xlint:deprecation for details.\nNote: Some input
   files use unchecked or unsafe operations.\nNote: Recompile with
   -Xlint:unchecked for details.\n2 errors\n\nFAILURE: Build failed with an
   exception.\n\n* What went wrong:\nExecution failed for task
   \':compileArmv7DebugJavaWithJavac\'.\n> Compilation failed; see the compiler
   error output for details.\n\n* Try:\nRun with --stacktrace option to get the
   stack trace. Run with --info or --debug option to get more log output.\n
   at ChildProcess.whenDone
   (/home/fen/talkalang/.meteor/local/cordova-build/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)\n
   at emitTwo (events.js:87:13)\n    at ChildProcess.emit
   (events.js:172:7)\n    at maybeClose (internal/child_process.js:854:16)\n
   at Process.ChildProcess._handle.onexit
   (internal/child_process.js:222:5)'
   at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
   at emitTwo (events.js:87:13)
   at ChildProcess.emit (events.js:172:7)
   at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
   => awaited here:
   at Function.Promise.await
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:35:12)
   at CordovaProject.runCommands (/tools/cordova/project.js:715:22)
   at CordovaProject.run$ (/tools/cordova/project.js:261:10)
   at tryCatch
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:63:40)
   at GeneratorFunctionPrototype.invoke [as _invoke]
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:337:22)
   at GeneratorFunctionPrototype.prototype.(anonymous function) [as next]
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:96:21)
   at tryCatch
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:63:40)
   at invoke
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:139:20)
   at
   /home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:184:11
   at callInvokeWithMethodAndArg
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:183:16)
   at AsyncIterator.enqueue
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:206:13)
   at AsyncIterator.prototype.(anonymous function) [as next]
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:96:21)
   at Object.runtime.async
   (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:226:14)
   at
   /home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:32:39
                                              
/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
      throw error;
      ^
undefined
 => awaited here:
    at Function.Promise.await (/home/fen/.meteor/packages/meteor-tool/.1.5.0-beta.8.17q25yp++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/isopackets/cordova-support/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:35:12)
    at /tools/cordova/runner.js:98:17
    at /tools/utils/buildmessage.js:271:13
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at CordovaRunner.startRunTargets (/tools/cordova/runner.js:97:37)
    at [object Object]._.extend._runOnce (/tools/runners/run-app.js:763:21)
    at [object Object]._.extend._fiber (/tools/runners/run-app.js:876:28)
    at /tools/runners/run-app.js:403:12

I work on a Ubuntu 14.04, with [email protected]

I got no idea of why I get this, and to be honnest, I don't understand what it means. None of the quoted erronous code is mine.

Thanks you

Targeting meteor release v1.1.0.3

I need to use your package for a meteor 1.1.0.3 project. However, when I follow the instructions and add the hedcet package and run android-device, i get the following error : Error: 404 Not Found: cordova-plugin-googleplus.

Error while running for mobile platforms: Error running
/home/mitesh/.meteor/packages/meteor-tool/.1.1.4.1o9xu8r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/cordova-scripts/cordova.sh
Error: 404 Not Found: cordova-plugin-googleplus
at RegClient.
(/home/mitesh/.meteor/packages/meteor-tool/.1.1.4.1o9xu8r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:304:14)
at Request._callback
(/home/mitesh/.meteor/packages/meteor-tool/.1.1.4.1o9xu8r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:246:65)
at Request.self.callback
(/home/mitesh/.meteor/packages/meteor-tool/.1.1.4.1o9xu8r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/request.js:236:22)
at Request.emit (events.js:98:17)
at Request.
(/home/mitesh/.meteor/packages/meteor-tool/.1.1.4.1o9xu8r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/request.js:1142:14)
at Request.emit (events.js:117:20)
at IncomingMessage.
(/home/mitesh/.meteor/packages/meteor-tool/.1.1.4.1o9xu8r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/request.js:1096:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:442:13)

Fetching plugin "[email protected]" via plugin registry

Could you tell me how I can solve the same ?

ERROR : Unrecognized options for login request [400]

Hello Mr,...
i have error on login. i use this code :

if (Meteor.isCordova) { // signIn through cordova
    Meteor.cordova_g_plus({
        cordova_g_plus: true,
        profile: ["email", "email_verified", "gender", "locale", "name", "picture"]
      }, function(error) {
            if (error) {
                alert(error);
            }
    });
}

But, show error on : " ERROR : Unrecognized options for login request [ 400] ". What shoud i do ?

photo47534624019163559

Error: Variable(s) missing: REVERSED_CLIENT_ID

Hello Sujith,
I'm having this message when building my app

$ meteor build ../builds/. --server=https://app.loya.li --mobile-settings ../_settings/loyali.json
Errors executing Cordova commands:
While adding plugin https://github.com/EddyVerbruggen/cordova-plugin-googleplus.git#3ae99ea5d24619949613b87cdcb01b407199c253 to Cordova project:
Error: Variable(s) missing: REVERSED_CLIENT_ID
...

Well I did search about it and I found that you are suppose to pass it to cordova during the plugin install.
cordova plugin add https://github.com/EddyVerbruggen/cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid
And this is where I understand why you say I have to put the mobile-config.js file app info. And it is done:

App.info({
  id: 'loya.ly.app',
  name: 'Loyali',
  description: 'Gérez vos cartes de fidélité et vos avoirs',
  author: '[email protected]',
  email: '[email protected]',
  website: 'http://loya.li',
  version: '1.3.0'
});

(yes I know I have a typo ly vs li in my id but it truly what I registered)
What did I forgot to have native up and running please ?

Also do you know if useraccounts package has adopted your native login solution ?

Thanks anyhow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.