Yes, sorry for not providing an update earlier. My problem was that I was not passing the From Jabber Id initially used to send the invite t0 .isAvailable. Doing the following fixed my problem:
if (xmpp.getPresence(recipientJid, fromJid).isAvailable()) { ... On Jan 2, 11:55 am, Sahil Mahajan <sahilm2...@gmail.com> wrote: > Hi > > I am facing same problem. > Did you find any solution to this problem? > getPresence is always returning false. > > On Nov 18 2009, 10:47 am, m seleron <seler...@gmail.com> wrote: > > > > > Hi. > > > Though it is likely already to have tried. > > > If the state is [is not available] > > please invite it from GMailchat or GTalk toXMPPAddresses > > ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.) > > > Please confirm Gtalk display thatXMPPAddresses > > ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.) > > is online and confirm presence status on the GppEngine side. > > > Please refer to the following links for details > > ofXMPPAddresses.http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html > > > Thanks. > > > On 11月18日, 午前1:52, timzon <jerome.bre...@gmail.com> wrote: > > > > Is anybody having problem with xmpp.getPresencenot providing valid > > > presence information for GTalk clients? > > > > Using very simple function to check the availability of a GTalk > > > client: > > > > XMPPServicexmpp= XMPPServiceFactory.getXMPPService(); > > > if (xmpp.getPresence(agentJid).isAvailable()) { > > > log.info(agentJid.toString() + " is available (added to > > > list)");} else { > > > > log.info(agentJid.toString() + " is not available"); > > > > } > > > >getPresencealways returns the same presence status for a user > > > regardless of the user real status. > > > > I've tried this with GTalk clients on both GMail and Apps domains. The > > > result is exactly the same. > > > > This is extremely blocking for our application as we need to validate > > > the presence of a group of GTalk clients to determine what to do with > > > a request. > > > > Thanks in advance for your help, > > > Jerome. -- 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 google-appengine-j...@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.