IOS SDK MobileRTCAccountInfo, which has no interface to get user name, how to get user name after login?

IOS SDK MobileRTCAccountInfo, which has no interface to get user name, how to get user name after login?

Hi xf_Duan,

If you would like to get the username after you login, you can use: MobileRTCAccountInfo.getEmailAddress, to get the username of your account.
If you would like to get the username while you are in a meeting, you can use: MobileRTCMeetingUserInfo.username to get the username of the current user in the meeting.

Thanks!

Using MobileRTCAccountInfo.getEmailAddress to get email only, but I need to get username consisting of first name and last name.

The username that you can get from MobileRTCMeetingUserInfo will be the one you what, but just not separated as first name and last name. If you would like to get first name and last name separately, you might consider using Zoom API: https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user.

I mean, when the user has just logged in successfully and hasn’t entered the meeting, can’t he get his username (not his email address) through the IOS SDK?

Marking as solved.

-Tommy