codelightstudios / android-smart-login Goto Github PK
View Code? Open in Web Editor NEWA smart way to add Login functionality to your Android app.
Home Page: http://codelightstudios.github.io/Android-Smart-Login/
License: Apache License 2.0
A smart way to add Login functionality to your Android app.
Home Page: http://codelightstudios.github.io/Android-Smart-Login/
License: Apache License 2.0
In your example images you show a login without toolbar, how que can I hide the toolbar?
Hi,
Nice library, guys! This is excellent. Can you guys please add login with Twitter and phone number via Twitter fabric and digits, or something like that? Login with twitter would be very needed for a login.
Also, I think I can rework the login page.
Only gets profile name and nothing else.
Hello, I know that this is a module but I don't know if you have a feature that allows you to change sizes of the buttons ( FB and G+) or change the colors of the Ui or the background?, also to translate the strings to other languages.
Best Regards
I've implemented what is needed, but when I use the login method I get "Google login failed" in the "onLoginFailure" callback.
the stack trace:
studios.codelight.smartloginlibrary.GoogleLogin.onActivityResult(GoogleLogin.java:87)
com.blabla.TestActivity.onActivityResult(TestActivity.java:52)
android.app.Activity.dispatchActivityResult(Activity.java:7137)
android.app.ActivityThread.deliverResults(ActivityThread.java:4916)
android.app.ActivityThread.handleSendResult(ActivityThread.java:4963)
android.app.ActivityThread.access$1600(ActivityThread.java:221)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1848)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:158)
android.app.ActivityThread.main(ActivityThread.java:7224)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
I want to know if, when the user login is a one time login like facebook and other big apps on the market ?
thanks !
LoginManager.getInstance().logInWithReadPermissions(SmartLoginActivity.this, permissions);
LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
progress.setMessage(getString(R.string.getting_data));
GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() {
@Override
public void onCompleted(JSONObject object, GraphResponse response) {
progress.dismiss();
UserUtil util = new UserUtil();
SmartFacebookUser facebookUser = util.populateFacebookUser(object);
if (facebookUser != null) {
finishLogin(facebookUser);
} else {
finish();
}
}
});
request.executeAsync();
}
This is your old code. It's not populating the util correctly and it's not allowing me to use the users data
Hi,
I have an app where users have to login/register in order to use the app.
Is there a way to disable the up button and change the back button to leaving the app?
Restarting the intent when the user pushes up/back is ugly.
Thanks!
Hi,
my keyboard pushes the login out of bounds: http://abload.de/img/screenshot_20160313-27no7x.png
I can scroll this view down, but not up, so I cannot see what I input into the Username field.
Thanks!
It would be great if we could get the profile picture url
Instead of strictly requiring the username field as a username, allow the developer to configure whether an email will be used instead of a username.
What do you think?
Hi there, just to know. Is there any ETA on when the login page and gradle dependency will be available? Just to know, cause I'm using the library as module from my project.
Is there anything that I can help with?
Thanks
gmail login not work and facebook email not get
facebook permission added, google right json added but not work also in demo app
I was searching how can customize login of FirebaseUI - Auth.
Exist a way to use Android-Smart-Login with FirebaseUI - Auth?
I think Android-Smart-Login is very cool and login of FirebaseUI - Auth is very boring.
Thanks.
Is there a working example using this? I'm trying to get it to work but I can't. I've followed this steps but I don't know how to add the loginBuilder.
I've made a LoginActivity class and copied the code here then I've made a MainActivity and tried to add the loginBuilder but it's red and I don't know what to import.
If you can provide an actual working example. Thanks
Hi,
Thanks a ton for such an amazing library. It's really darn useful and shaves a lot of time for developers to include social logins. Just one query. Am I allowed to make modifications in your library like changing the text views color ,etc? By the way, I have included your project as a library in my android. So it goes with direct modification of your source code.. Am I allowed to do it ?
When I try to sign out my superUser, application crashes. Log says that transaction is too large. Below is part of the logcat. I'm I the only one with this issue?
09-14 11:49:37.965 7904-7904/studios.codelight.smartlogin D/Error: ERR: TOTAL BYTES WRITTEN: 28404168 09-14 11:49:37.968 7904-7904/studios.codelight.smartlogin E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 28404252) 09-14 11:49:37.968 7904-7914/studios.codelight.smartlogin I/art: Background sticky concurrent mark sweep GC freed 23(1360B) AllocSpace objects, 1(27MB) LOS objects, 2% free, 129MB/133MB, paused 5.134ms total 83.796ms 09-14 11:49:37.973 7904-7904/studios.codelight.smartlogin E/AndroidRuntime: Error reporting crash android.os.TransactionTooLargeException: data parcel size 28404252 bytes at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:503) at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4425) at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:90) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
Hi, I would like to know when the next release is scheduled?
Also, what still needs to be done? I might be able to help with what needs to be done (currently busy with school work, though).
Last beta release seems a little outdated. Is any news about the date of next release?
Thanks, M.
I have a remote backend django app that has all rest endpoints for user management. The authentication type is via a token (Token authentication, not JWT).
How would I integrate this with custom signup/sign in/signout?
Improve the login page with setting the error messages to the EditText instead of an alert dialog
I want to add source code as project instead of .aar file , how to do this and which folder to add as library ... and i wonder if .aar file has the same version as source code ?? .. thanks in advance
On Custom Signup even after providing a valid email address the app is still throwing this error, is it a bug?
For now I use my own login activity. Google-login should be used so I hided the other possibilities to login. The user has to click on an arrow and then facebook, digits and own login (username/password) is shown.
Would be nice if this lib could do this job.
I think we can make this library more modular by allowing the user to specify a login layout/fragment. He/she would also have to include the facebook/google login button ids via an attribute.
What do you guys think?
I am able to include the library successfully in my project, but Google sign-in is not working.
It stucks at "Getting user info" and remains there.
Facebook login is working perfectly.
Please help me with Google sign-in or suggest me where am I going wrong.
Sample not work .. No showing proper error report .. it just say "Something Wrong" How we can find error? sample only have layout. Developer looking library for make work easy.. i am right?
Hi Guys, This is not a problem with the lib, but I couldn't find any other way to reach out.
I am wondering if you have any suggestions for using a lib for the backend handling of all three login strategies?
Or is the only option to write it from scratch?
Thank you so much
hi,
how can i create my own view for sign up, and does not use the library view??
is it avilable?
i searched the web and i found that i need,configuration file and put it at app directory,i am using sdk 27.1.1
Hey I set up the library and manifest file as explained, but at building the intent like this:
Intent intent = new SmartLoginBuilder().with(MainActivity.this)
.setAppLogo(R.drawable.app_logo_circ)
.isFacebookLoginEnabled(true).withFacebookAppId(getString(R.string.facebook_app_id))
.isGoogleLoginEnabled(false)
.build();
startActivityForResult(intent, SmartLoginConfig.LOGIN_REQUEST);
I get the following exception. It means that I have some kind of linking problem.
08-26 12:24:16.044 6195-6195/com.app.appdemo.daily.developer E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: studios.codelight.smartloginlibrary.SmartLoginActivity
at studios.codelight.smartloginlibrary.SmartLoginBuilder.build(SmartLoginBuilder.java:66)
at com.app.appdemo.screens.main.MainActivity.onCreate(MainActivity.java:56)
at android.app.Activity.performCreate(Activity.java:5133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
at android.app.ActivityThread.access$600(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5289)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
at dalvik.system.NativeStart.main(Native Method)
Can you give me possible solutions?
While logging in using LoginType.Facebook, it doesn't show any data except userid and gender. I think its time to update the library.
Is it possible to get the authToken/authCodes from the oauth with google and facebook?
Facebook Login is working fine but Google login fails with following error
studios.codelight.smartloginlibrary.util.SmartLoginException: Google login failed
How should i debug this?
What could be the reason of failure
Hello, I have noticed some typo errors in the README file and I would like to correct them. Can you tell me in what branch should I put my request in?
I wish use the Android Smart Login, but the version code is outdated. Can you update this API?
Hi I downloaded services json from firebase app and build the project but failed.
Caused by: org.gradle.api.GradleException: No matching client found for package name 'studios.codelight.smartlogin'
How can I fix it?
Thanks!
Hello @kalyandechiraju , I have a question about your Android Smart Login Library. I'm developing my customSignup method and I wanted to know what is the return value for? and where is it used?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.