Thanks using getPresence(recipientJid, fromJid).isAvailable()) solved the problem
On Jan 3, 10:43 am, timzon <[email protected]> wrote: > Yes, sorry for not providing an update earlier. > > My problem was that I was not passing the From Jabber Id initially > used tosendtheinvitet0 .isAvailable. > Doing the following fixed my problem: > > if (xmpp.getPresence(recipientJid, fromJid).isAvailable()) { > ... > > On Jan 2, 11:55 am, Sahil Mahajan <[email protected]> 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 <[email protected]> wrote: > > > > Hi. > > > > Though it is likely already to have tried. > > > > If the state is [is not available] > > > pleaseinviteit from GMailchat or GTalk toXMPPAddresses > > > ([[email protected]] or [[email protected]],etc.) > > > > Please confirm Gtalk display thatXMPPAddresses > > > ([[email protected]] or [[email protected]],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 <[email protected]> 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 [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.
