-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
I need to get the display name or Alias of friends using XMPP and XMPPFramework. Please help.
try with the following code
func xmppRosterDidEndPopulating(_ sender: XMPPRoster) {
if let jids = xmppRoster.xmppRosterStorage.jids(for: stream) as? [XMPPJID] {
print("JIDS: \(String(describing: jids))")
for item in jids {
print(item.user)
listContacts.append(item.user!)
}
}
}
this prints the user and not the name or alias (nickname)
example, a contact has:
user = [email protected]
name = test 2
the previous method prints the user. the output of "print(item.user) = [email protected]" and not the name in this case would be "name = test 2".... the print(item.user) return the User but not the alias (nickname)
How do I get the name, alias (nickname)?
Metadata
Metadata
Assignees
Labels
No labels