Comments (11)
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.
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.
@cprakashagr can you please refer to the method which will connect to meteor server via facebook login
from android-ddp.
@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.
@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.
@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.
Kindly be updated about the LinkedIn Login as well.
from android-ddp.
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.
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.
@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.
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)
- Json result containing null value are converted to {"$InfNaN":0} HOT 5
- Notify only specific user HOT 1
- Switch to GSON HOT 3
- How to use android-ddp with requery HOT 1
- destroyInstance() breaks if not connected HOT 2
- Insert byte[] in collection HOT 3
- SubscribeListener does not has the callback response? HOT 3
- i cannot connect to server HOT 1
- wifi -> lte, when internet connection is changed, Connection timed out is occured immediately HOT 1
- Multi subscribe
- How to call methods with array of objects with keys HOT 1
- How to get collections without database HOT 1
- Is it possible to get a MongoDB database from the Meteor connection? HOT 1
- Manage susbscriptions after disconnect HOT 10
- Can you add a method to use a JSONObject or JSONArray or JSON String instead of an array of objects? HOT 1
- wss error handshake HOT 10
- I subscribe, I cancel the subscription and then I subscribe again and the OnDataAdded does not trigger
- Any listener (or method) to find out if all the subscribed data was received from server? HOT 2
- Is there any way to cancel the "call" request?
- Unable to use websocket connection over ssl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-ddp.