Code Monkey home page Code Monkey logo

Comments (11)

ocram avatar ocram commented on May 22, 2024

Thanks for your question!

Unfortunately, this is not yet supported by this library. Sorry! Meteor itself (for the web) supports this, of course.

Having access to the Meteor#call(...) method, however, you could probably implement this yourself, if you'd like:

To connect with the third-party service (e.g. Facebook), one must (most likely) make a separate HTTP request to get a login token. After that, you can then use that token in some method call to your Meteor server using Meteor#call(...).

Hope that helps!

from android-ddp.

cprakashagr avatar cprakashagr commented on May 22, 2024

Hi, this is now possible with the new pull request I have made. Kindly check here, https://github.com/cprakashagr/Android-DDP/tree/GoogleLoginHandler

from android-ddp.

najeebullahshah avatar najeebullahshah commented on May 22, 2024

@cprakashagr can you please refer to the method which will connect to meteor server via facebook login

from android-ddp.

cprakashagr avatar cprakashagr commented on May 22, 2024

@najeebullahshah there is no such custom methods for facebook or google login at meteor accounts. Kindly see my code and use the facebook login accordingly.

from android-ddp.

najeebullahshah avatar najeebullahshah commented on May 22, 2024

@cprakashagr if i am not wrong you added method "registerWithGoogle" to the DDP settings parameters using Map but it uses the following paramters

         accountData.put("email", email);
    accountData.put("userId", userId);
    accountData.put("idToken", idToken);
    accountData.put("oAuthToken", oAuthToken);
    accountData.put("googleLoginPlugin", googleLoginPlugin);

Can you please tell me what parameters should i change for facebook.

from android-ddp.

cprakashagr avatar cprakashagr commented on May 22, 2024

@najeebullahshah Man, I haven't worked with the facebook oAuth API as of now. This link might help you, https://developers.facebook.com/docs/facebook-login/android#get_current.

from android-ddp.

cprakashagr avatar cprakashagr commented on May 22, 2024

Kindly be updated about the LinkedIn Login as well.

from android-ddp.

ocram avatar ocram commented on May 22, 2024

For Google and LinkedIn, please take a look at @cprakashagr's code here: #40

For Facebook and Twitter, someone would have to write something similar that consists of ...

  • server-side code in JavaScript for use with Meteor (the bigger part)
  • client-side code in Java/Android for use with this library (the smaller part)

from android-ddp.

gopinath-langote avatar gopinath-langote commented on May 22, 2024

Hello Everyone,
I have implemented loginWithGmail functionality to Meteor DDP for my project. Using server side method. By loginWithUsername or registerWithUser name we should have password. but for loginWithGmail we don't need password. So I published method called createUser on server side and allows client to call it [ Specifically mobile client android / IOS ].this method takes userJson object containing user details like username,email,id [by google ],gender etc, which we will get by Google Auth in mobile app.And this method return me the document of created user. For sign in with google , i have used GoogleAuth by goole. One can ping for more details and implementation stuff. If one could allow me to insert code in existing library of Meteor class . We can go ahead.

from android-ddp.

ocram avatar ocram commented on May 22, 2024

@gopinath-langote Thanks! In what way is your solution for "Gmail" different from @cprakashagr's solution for "Google+" linked in the Extensions.md file in this repository?

from android-ddp.

ocram avatar ocram commented on May 22, 2024

Closing, as the Google case has been solved, at least.

For Facebook or Twitter integrations that become available, please open a separate issue in the future :)

Thank you!

from android-ddp.

Related Issues (20)

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.