I just implemented Firebase authUI in an app but I\'d like my users to be able to have usernames/display names that aren\'t their names on those accounts, without f
Yes you can. As @Gastón Saillén mentioned in his answer, when you first sing-in, you get the data from the registration provider but once you are signed in with Firebase, you can set a custom user name by updating the existing one using UserProfileChangeRequest.Builder.setDisplayName() method like this:
FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
UserProfileChangeRequest userProfileChangeRequest = new UserProfileChangeRequest.Builder()
.setDisplayName("aedgar777")
.build();
firebaseUser.updateProfile(userProfileChangeRequest).addOnCompleteListener(new OnCompleteListener() {
@Override
public void onComplete(@NonNull Task task) {
if (task.isSuccessful()) {
Log.d(TAG, "aedgar777 updated!");
}
}
});