ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Please note that Remote Expert Mobile announced end-of-life and support will end on February 28, 2022.
178
Views
0
Helpful
1
Replies
Highlighted
Cisco Employee

QuickContact subscribe problem

Hi,

I am using QuickContact to create a roster of users for someone to chat with.

I find that if the users are already logged into Jabber when I subscribe to them that their presence will be captured correctly in the "primaryPresenceChanged" event.That person can change their status at will and my application will get notified.

However, if that user is not already logged in, then the "primaryPresenceChanged" event will never, ever get fired.

Is there something I can do so that when the user does log in that I can have an event fire that will allow me to start getting their presence updates?

-john

1 REPLY 1
Highlighted
Contributor

Re: QuickContact subscribe problem

Hi John,

This is what I did

I catch client's entitycreated event and assign it to a temp obj. Within that obj, I monitor the primaryPresenceChanged without problem.

client.entitySet.event("entityCreated").bind(function(evt) {

var qcontact = evt.data;

qcontact.event("primaryPresenceChanged").bind(function(evt) {

  _roster._updateRosterItem(qcontact);

});

Regards,

Howard

This widget could not be displayed.