June 2018
Beginner to intermediate
394 pages
9h 2m
English
In any of the onboarding services, it is very important to allow the user to update profile-related details such as updating profile pictures, displaying names, and so on. To accomplish this in a FirebaseUser instance, we have a method called updateProfile which accepts a UserProfileChangeRequest object with updated information:
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder() .setDisplayName("Vinisha Krishna") .setPhotoUri(Uri.parse("https://example.com/vinisha-k-bengaluru/profile.jpg")) .build();user.updateProfile(profileUpdates) .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull ...
Read now
Unlock full access