According to 
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/xmpp/XMPPService.html#getPresence%28com.google.appengine.api.xmpp.JID%29
 

XMPPService.getPresence is deprecated. 

Fair enough, I can use XMPPService.sendPresence(jid, PresenceType.PROBE, 
null, null) and handle the response asynchronously with 
/_ah/xmpp/presence/available/ and /_ah/xmpp/presence/unavailable/

However, I've found that most of my offline users and a couple of my online 
users are not replying to the presence probe. Is the probe guaranteed to to 
receive a response presence? Or do I have to manually perform a timeout 
check and assume that no-response means unavailable? If that's the case I'd 
rather stick to using the deprecated getPresence() method and hope it 
doesn't get removed in the future.

This is my code:

        Collection<String> users = getUsers();
        for (String u : users) xmpp.sendPresence(new JID(u + "@gmail.com"), 
PresenceType.PROBE, null, null);

I've confirmed that I receive available and unavailable presences from 
these users when they log in or logout, but they do not respond to presence 
probes when they are offline.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/9ZBnNXzpa6UJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to