Hi there- According to the XMPP spec, a server may chose not to respond to a presence PROBE if the user is offline (see section 5.1.3 here: http://xmpp.org/rfcs/rfc3921.html).
I'm curious about online users not responding to the probe, though. How often does that happen? Can you provide me the JIDs (offline, my email is moishel at google.com) if it's a consistent set of JIDs? Thanks! -Moishe On Nov 8, 12:13 pm, Gerald Tan <[email protected]> wrote: > According > tohttp://code.google.com/appengine/docs/java/javadoc/com/google/appengi... > > 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
