Shared roster group and displayName

295 views
Skip to first unread message

Jon Sonnenschein

unread,
Sep 5, 2013, 3:59:29 PM9/5/13
to xmppfr...@googlegroups.com
i'm just starting to check out XMPPFramework and I'm impressed. It's a great project.

Curious if someone can answer a few basic questions.

1) Is there an easy way to get XMPPFramework iOS to support a shared group roster from ejabberd? We'd like to use the group to update the roster automatically.

2) What field do we need to update to get XMPPF to display a full name instead of a JID in the displayName that appears in the root view?

Thanks!

Jon

Spencer MacDonald

unread,
Sep 5, 2013, 4:53:23 PM9/5/13
to xmppfr...@googlegroups.com
1) If you update someones roster on the server it will be pushed to the client, but there isn't really any concepts of shared groups between users.
2) The nickname might be what you want :)

Spencer



--
You received this message because you are subscribed to the Google Groups "XMPPFramework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmppframewor...@googlegroups.com.
To post to this group, send email to xmppfr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xmppframework/087c0799-be82-42dd-9e44-7e462bcd857e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jon Sonnenschein

unread,
Sep 5, 2013, 5:20:35 PM9/5/13
to xmppfr...@googlegroups.com
Thanks for the quick response, Spencer.

2) After updating nicknames on the server, the client logs the nickname, but still displays the jid in the root view.

Best.

Jon

Spencer MacDonald

unread,
Sep 5, 2013, 5:35:11 PM9/5/13
to xmppfr...@googlegroups.com
Strange, it works for me logging into GTalk.

So you see the nickname in the roster item?

e,g,

<item jid="thei...@domain.com" subscription="both" name="their-nickname"/>

Spencer

Jon Sonnenschein

unread,
Sep 5, 2013, 5:42:30 PM9/5/13
to xmppfr...@googlegroups.com
Spencer,

I see the nickname in ejabberd and in the XMPP stream logged by XMPPFramework.

Is there a line of code I can check to be sure it's being set?

Best.

Jon



--
You received this message because you are subscribed to a topic in the Google Groups "XMPPFramework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmppframework/UQ6CPkDcKyE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmppframewor...@googlegroups.com.

To post to this group, send email to xmppfr...@googlegroups.com.

Spencer MacDonald

unread,
Sep 5, 2013, 5:49:13 PM9/5/13
to xmppfr...@googlegroups.com, xmppfr...@googlegroups.com
updateWithItem in XMPPUserCoreDataStorageObject.m is where it gets set.

Regards

Spencer

Jon Sonnenschein

unread,
Sep 5, 2013, 6:11:14 PM9/5/13
to xmppfr...@googlegroups.com
Spencer,

I see it.

Logging it self.nickname = [item attributeStringValueForName:@"name"]; The result is null.

Looking at the log, I'm publishing my own nickname, but not retrieving any other users' nicknames from the server... Very odd.

Here's the log:
2013-09-05 15:02:44:403 App[76527:430b] RECV: <iq xmlns="jabber:client" from="ri...@foo.bar" to="ri...@foo.bar/14075585861378418564165092" type="result"><query xmlns="jabber:iq:roster"><item ask="subscribe" subscription="none" jid="jo...@foo.bar"/><item ask="subscribe" subscription="none" jid="geo...@foo.bar"/><item subscription="both" jid="pa...@foo.bar"/></query></iq>

Any thoughts?

Best.

Jon


Spencer MacDonald

unread,
Sep 6, 2013, 7:32:39 AM9/6/13
to xmppfr...@googlegroups.com
Usually when you add someone to your roster you set their nickname e.g. addUser: withNickname: or you can advertise your own nickname in your presence using http://xmpp.org/extensions/xep-0172.html.

I expect whatever you updated on your server didn't work, but i'm not sure what you need to change on ejabberd to make it work.

Regards

Spencer


Reply all
Reply to author
Forward
0 new messages