#4 Firebase Authentication Tutorial - Displaying User Info

preview_player
Показать описание
Firebase Authentication Tutorial [ Updated ]

Learn everything about Firebase Authentication. In this video we will display the User Info that we saved in the previous video.

Don't forget to follow us on
Рекомендации по теме
Комментарии
Автор

LISTIN EVERYONE THE WAY SHOWED TO UPLOAD IMAGE IS NOW DEPRICATED AND IF YOU ARE HAVING SOME PROBLEM LIKE THERE IS NOTHING TO DISPLAY AT IMAGE VIEW THEN USE THIS INSTEAD

final StorageReference profileImageRef = + System.currentTimeMillis() + ".jpg");

if (uriProfileImage != null) {


.addOnSuccessListener(new {
@Override
public void taskSnapshot) {
// profileImageUrl //this is depreciated

//this is the new way to do it
OnCompleteListener<Uri>() {
@Override
String
Log.i("URL", profileImageUrl);
}
});
}
})
.addOnFailureListener(new OnFailureListener() {
@Override

Toast.makeText(ProfileActivity.this, "aaa "+e.getMessage(), Toast.LENGTH_SHORT).show();
}
});
}

Prabhrandhawa
Автор

You can get the source code from this GitHub repository

SimplifiedCoding
Автор

Hi everyone, I finally figured out why the profile picture won't load for some of us. It is because the newer version of FireBase changed the way to access the DownloadUrl. Use this code in uploadImageFireBaseStorage and it should work



.addOnSuccessListener(new {
@Override
public void taskSnapshot) {



OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
profileImageURL = uri.toString();
Toast.makeText(getApplicationContext(), "Image Upload Successful", Toast.LENGTH_SHORT).show();
}
})
.addOnFailureListener(new OnFailureListener() {
@Override
Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();
}
});
}
})
.addOnFailureListener(new OnFailureListener() {
@Override

Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();
}
});

robertaroutiounian
Автор

Thank you for all the videos, really helped!

farouk
Автор

Firebase Authentication Tutorial [ Updated ]

SimplifiedCoding
Автор

Hi Bilal, thanks for VERY useful videos. This is just what I needed for my app! Just asking: did you actually already implement the "user has already logged in" case? So does your code already detect if a user is logged in, so he does not need to login again every time he fires up the app? Or, should I really use something like SharedPreferences for remembering the login credentials?

And could you add the "I have forgotten my PW, please send it to me via email" case to this app?

jyrki
Автор

At 6:50, the load method can take the parameter as user.getPhotoUrl() as well as user.getPhotoUrl().toString(), both works. Is it okay to use any one of them or do I need to use only Please reply soon.

musaddiqali
Автор

I got run time error must not be null
at .into(imageView)

At


Please suggest me what i do..

kamlakarbuchake
Автор

hello can you please make a video of displaying the user info(the email which we sign up) in navigation header?

Tengkuma
Автор

If I want to fetch a pdf file stored in firebase storage automatically and also being stored automatically in storage and then view it in my app so that I donot need to have internet connection next time. How to do that? Plese make a video for that.

RaOneGenix
Автор

i used the same dependecies and maven as you gut a have some errors: Error:Failed to resolve: annotationProcessor
AND
Error:Failed to resolve:
please help me! thank you

mikisor
Автор

Please make a video about to manage forget password activity in firebase login. Thank you

asifiqbal
Автор

please help me ...my app being not launched after adding this stuff

krishnasony
Автор

First I thought it was the fault of the Glide library, so I switched to Fresco and still got the same issue. the profile pic isn't retrieved. Solve this, please.

smaug
Автор

Hello sir, can i use firestore and email&password authentication together? How to get the currentUser? any videos ?

ahmadnizam
Автор

Sir how to distinguish two types of users one is email auth and one is phone auth,
what code we have to write in on start method to open different screens for phone and email auth differently

amitghosh
Автор

how a put another informations? like phone number and city

victrixsvs
Автор

Sir after adding these lines app crashes with alot of errors in logcat
Java.lang.NoSuchMethodError

tutorialbot
Автор

Hi Bilal, Thank you for teaching us wonderful Firebase, I have completed my program till 4th tutorial however I am getting screenflicker when I run the program, please help me.

nobledhump
Автор

when i have update profile pic at that time photo uplode but old photo does not delete from database how can i delete all old pic from database

vishalvanpariya